User forums > General (but related to Code::Blocks)
Teletype font tooooooo small
thomas:
Find in files... :)
Search for </head>
280Z28:
This should just be a CSS problem :think:
thomas:
It is not just a CSS problem.
Internet Exploder is displaying some of the code badly. All other browsers do not have that problem. So unless you want to have the forum display nicely in IE and show ill-formatted in any other browser, you have to provide different style information to different browsers.
You have the following choices:
- conditional comments: these work reliably and are perfectly suitable in this case
- JavaScript: unreliable at best
- UserAgent: unreliable and requires changing the web server's config
- CSS hacks: these are, like their name says, hacks - no alternative
280Z28:
--- Quote from: thomas on December 15, 2005, 12:12:48 am ---It is not just a CSS problem.
Internet Exploder is displaying some of the code badly. All other browsers do not have that problem. So unless you want to have the forum display nicely in IE and show ill-formatted in any other browser, you have to provide different style information to different browsers.
You have the following choices:
- conditional comments: these work reliably and are perfectly suitable in this case
- JavaScript: unreliable at best
- UserAgent: unreliable and requires changing the web server's config
- CSS hacks: these are, like their name says, hacks - no alternative
--- End quote ---
CSS problem as in CSS not designed specifically to compensate for IE's inability to follow rules. Technically that's an IE problem, but when a site doesn't keep that in mind and forgets to make the site look right in the most popular browser, it becomes a problem with their CSS code.
IE makes me like this when I'm trying to make a site: :x :x
thomas:
IE is actually no problem at all if you do not have the requirements to be pixel-precise and to have the exact same look in different browsers.
If you can live with pages looking slightly different (which they will anyway, realistically) then you can make a 100% standards compliant page which is accessible and good looking in every browser. All you need to do is provide either a fallback css or a correction css for IE and conditional comments are a really gorgeous invention for that purpose. These are certainly the best thing Microsoft ever invented.
No hacks needed, no scripts, nothing.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version