![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
TAM wrote: http://www.ngrain.com/CSS/home1.htm designed for IE http://www.ngrain.com/CSS/home2.htm designed for NN, Mozilla, FireFox and Opera. Is it because these browsers behave differently on different platform or something is wrong with my CSS? Any comments… There should be no reason to have 2 separate pages, or even 2 separate stylesheets. I think your main problem is all the fixed box dimensions and inappropriate relative positioning - it creates a fragile layout that easily falls apart, especially at enlarged text sizes. I don't think you fully understand what relative positioning does. I suggest getting rid of all the positioning, reorganize the html so it makes sense when stylesheets and images are disabled, then work on the layout. And have a look at the page in a text browser like Lynx, or in Opera in user-mode (CTRL+G). It can be a real eye-opener. ![]() |
#2
| |||
| |||
|
|
TAM wrote: Hi kchayka, Hi. Please don't top post in this newsgroup. thanks kchayka <usenet (AT) c-net (DOT) us> wrote TAM wrote: http://www.ngrain.com/CSS/home1.htm designed for IE http://www.ngrain.com/CSS/home2.htm designed for NN, Mozilla, FireFox and Opera. There should be no reason to have 2 separate pages, or even 2 separate stylesheets. Since I dind't had browser detection I created two seperate pages. Later on I have have browser detection in place and I will select the CSS, but I didn't understand when you said that I do not even need two style sheets. Can you explain how I can have only one style sheet for all the browsers? Browser detection is inherently unreliable and shouldn't be used for any reason. There are many ways to show different style rules to different browsers without JavaScript. If you searched the news archives, you could probably find some in a few seconds. http://groups.google.com/advanced_group_search I'll save you a little time, here's a fairly good list of CSS links: http://groups.google.com/groups?as_q...04&safe=images But you really need to get a basic understanding of CSS, particularly the box model and how positioning works, before you try to use any advanced layout techinques like the attempts on your page. I think you really should start over if you want clean code that will be both cross-browser compatible, and easy to maintain. The "div soup" you have now will only get worse as time goes by, and be ever more prone to display problems. |
#3
| |||
| |||
|
| http://www.ngrain.com/css/new1.htm ... span class="topNavSelect">Home</span a href="../contact/index.html">Contact</a a href="../sitemap/index.html">Site Map</a> | <a href="../support/index.html">Support</a |
|
I am also using absolute positioning now to have better control |
#4
| |||
| |||
|
|
Hi kchayka, kchayka <usenet (AT) c-net (DOT) us> wrote TAM wrote: Hi kchayka, Hi. Please don't top post in this newsgroup. thanks |
#5
| |||
| |||
|
|
TAM skrev 2004-08-28 00:38: Hi kchayka, kchayka <usenet (AT) c-net (DOT) us> wrote TAM wrote: Hi kchayka, Hi. Please don't top post in this newsgroup. thanks A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet? |
![]() |
| Thread Tools | |
| Display Modes | |
| |