Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code is shown in Opera Browser
Message
De
23/09/2004 17:14:46
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Installation et Configuration
Divers
Thread ID:
00945425
Message ID:
00945534
Vues:
13
>>>>I agree with you Hector. IE is very forgiven on strange tags. It will not render any tag as text, reguardless of what it is. I tested the URL on Opera, FireFox, and Netscape 7.1, and the line show on all of them. They are more strick about HTML tags and formatting.
>>>
>>>Thanks a lot for testing, Greg. Hector's explanation sounds very reasonable. Mona (the parent) told me, she is using some package from Adobe (or I understood her this way) for designing WEB Pages. For uploading files to the server she uses another software, which I never heard of: "Coffee Cafe" (???) if I remembered it right.
>>>
>>>So, what should be done to make it work correctly in any browser? I guess, these files should be just simple HTML files, not ASP.NET files because the information seems to be pretty static and I do not think, that some database is involved.
>>
>>My only suggestion would be to delete the line out of the HTML file. If the page does not require the line, there is no need for it. That is if it is a static HTML page.
>
>I'll pass this suggestion to her, thanks a lot.
>
>How about my other questions in the original message?
>
>Thanks again.

My experience as shown me that IE tend to render text large then other browsers. On my web site I have adjusted the font size for the other browsers and allow the IE view to be little bigger. As for the CSS file, there should be only a single file that format all the web page. Use the < H1-5 > tags for captions of section and < P > tag for paragraph text. You can then establish font face and size in the CSS file for each. But, do not set the size to an absolute size, but a named size, like "medium". The user can alter the view of the page by changing the relative font size through their browser (On IE menu, View->Font Size). This allow user with different screen resolution to view the page correctly. Use the < Font > tag only to change the color of the text, not the size.

Here is an example of a simple General.css file content.
Body {
     face: Arial;
     size: medium;
P {
     face: Arial;
     size: medium;
}
H1  {
     Face: Arial;
}
H2  {
     Face: Arial;
}
In the Header tag block place the a Link tag to the CSS file.

< LINK REL="stylesheet" HREF="General.css" type="text/css" >

And store the CSS file in the root of the web site.

CSS file allow for easier control over the overall look and feel of the site from a single place. If you deside that the font is too small, you only need to change the CSS file and the entire web site changes.

Hope this helps.
Greg
Greg Reichert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform