I have a webpage where it displays differently in different browsers.. But I am not aware of how to solve the cross browser compatability issues since I am a newbie.. (My issues is the the 3 boxes(of content area: green orange and green) are not in same level at the bottom, in different browsers.. I want to make it in same level in all the browsers in windows... Also it looks different in Linux OS and MAC Os... )Please help me...
Being at work and not being able to go through all your code and look at it in different browsers the first thing that comes to mind is using resets. Resetting margins inherited from other elements usually helps.
Replace content, sideNavFooter, and main with the names of your three column div tags.
The y says that you not only want to match the size of the three div tags to each other, but you also want them to run the full height of the window.
The final number is a number that I use if the three divs need to span the length of the window, but there is a horizontal div at the top like a header. I take the height of that header div and subtract it from the window height.
You may want to issue a command to maximize the browser window first before launching this code. It will match the window height and if the window is small, then the height remains small when you make the window bigger.
Hope that helps!
~Maria
We're Tiny,
We're Toony,
We're all a little loony.
The scripts were rejected;
Expect the Unexpected.
Being at work and not being able to go through all your code and look at it in different browsers the first thing that comes to mind is using resets. Resetting margins inherited from other elements usually helps.
Hello,
I tried to reset the margin and padding of css by adding the code...
* { margin:0; padding:0; }
But it did not help much.. It looks differently in Chrome(Windows)... In Chrome only it has problems .. Also it looks different in other OS like Ubuntu, MAC (for firefox, chrome etc)... Atleast I wish If I could see it correctly in all browsers in Windows OS... Please help... It would be great if I could solve it with CSS and HTML rather than using other javascript
You are aware that your CSS is LARGER than your HTML? That is a bit defeatist.
I was looking at the CSS and you've got some "position:absolute" and negative positions going on... this can be a recipe for trouble if you are inexperienced. :-)
I'll try to paste this together in an html-editor and see of I can spot anything. For example (re: the size of your CSS code), -if you start your CSS like this:
* {margin:0; padding:0;}
you can safely remove stuff like this:
p,h1,h2,h3,h4, li, ul{ margin:0px; padding:0px}
and the BOLD here: #header{height:125px; padding-top:0px;}
Because the "universal selector method" * {margin:0; padding:0;} removes margin & padding from ALL elements (removed from body, html, p, h1-6, table, -everything)
Something else I am seeing is (for the lack of a gentler term) sloppy use of the semi-colon in your CSS:
the " ; " delimiter probably should not be white-space separated from the attribute, lest it be read as something different. I've already found several instances of this.
A "<br />" should only be used as a 'line-break' and not as an element to possess style. It CAN, there is not rule against it, but the point of CSS is to separate content from style. A 'line-break' is really an element of content used only to separate recursive lines of text without invoking the end of the "<p>" paragraph. You are attempting to use "<br />" to style the content. There are better & ore accurate ways to do this (using margin, etc.) because the 'line-break' height can vary depending upon what font and line-height you are using. A margin can be defined in px, and that is pretty solid across all browsers.
Bookmarks