![]() | |
#1
| |||
| |||
|
|
| | | | Div 1 | Div 2 | | | | | -------------------------------------------------- | | | | Div 3 | Div 4 | | | | | -------------------------------------------------- |
|
| | Div 1 | Div 2 | | -------------------------------------------------------------- | | Div 3 | Div 4 | Text Text Text Text | | Text Text Text Text | |
#2
| |||
| |||
|
|
Well, I'm now totally bald after pulling my hair out over this one. I've got a site, done entirely with CSS and html, and it looks perfect in explorer. The layout looks like this: -------------------------------------------------- | | | | | Div 1 | Div 2 | | | | | -------------------------------------------------- | | | | | Div 3 | Div 4 | | | | | -------------------------------------------------- In explorer it renders just fine, with all boxes looking even and lining up properly. Each div holds different text or graphic content. However, in Mozilla, the boxes are all distorted, and don't display the proper number of pixels that I had specified in the css. They look like this: -------------------------------------------------------------- | | | | | | | Div 1 | Div 2 | | | | | | | -------------------------------------------------------------- | | | | | | | Div 3 | Div 4 | | | Text Text Text Text | | | Text Text Text Text | -------------------------------------------------------------- Text Text Text Text Text Text Text Text All jacked up. I'll post my CSS if you are interested in seeing that, I supose it may help. If anyone has any ideas I'de love to hear. Mozilla dosen't seem to be very good with CSS. I will say I am a new Mozilla user. I'm used to designing with Explorer. Also, the content is dynamically created with PHP so I can't control the height of the div, and in Mozilla the text will just break right out of the div, instead of expanding the div, see Div 4 above. Thanks for any help. -g- |
#3
| |||
| |||
|
|
Looked at your website with Internet Explorer, Firefox (Mozilla) and Safari - everything looks the same and works great in all three. DisPlaced |
#4
| |||
| |||
|
|
In article <kMudnQ04LZU8YXfcRVn-iA (AT) comcast (DOT) com>, "Greg" <greg (AT) aperfectnumber (DOT) com> wrote: Looked at your website with Internet Explorer, Firefox (Mozilla) and Safari - everything looks the same and works great in all three. DisPlaced Thanks for taking the time DisPlaced. I really can't figure this out then. On my screen IE looks ok, mozilla breaks. Does screen resolution have anything to do with it? Again, I really appreciate your help. -g- Sorry - I'm not an expert. My screen resolution is set at 1152 x 870 if that helps. DisPlaced |
#5
| |||
| |||
|
|
Ok, I figured it out, so maybe other people with this problem might be able to solve it. For some reason, Mozilla displays the "Padding" feature of CSS differently than IE. Where IE just pads the edges of a "box", Mozilla actually adds to the square to keep the padded area the same dimensions as the box. So if you wanted a box that was 50x50 and you wanted 10 px of padding around the whole thing, it would increase the actual dimensions to 60x60, to keep the original box 50x50 with ten px of padding. |
![]() |
| Thread Tools | |
| Display Modes | |
| |