Topic: yet another ridiculous CSS question.... (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Lost Angeles Kalifornia, via Hawaii.... |
posted 02-28-2007 08:09
Upon posting this I haven't quite figured out why this is happening. |
Bipolar (III) Inmate From: Mpls, MN |
posted 02-28-2007 08:37
I don't know the specific to why, but I ran into this same problem today playing with the sliding door technique for round corned boxes. You may have to set the top and bottom margin of the first and last object inside the "mainarea" block element. But I'm sure there's a better solution, but I'm not much past the intermediate stage myself. |
Paranoid (IV) Inmate From: Norway |
posted 02-28-2007 09:29
Using the mterics indicator in Opera's developer Console I spotted a 13px margin top and bottom on the H1 and 11px margin top and bottom on the P tag. These margins aren't set explicitly or inherited from other CSS rules. They are part of the default style. You can either set a padding top and bottom on the #maincontent to compensate these margins, or fidlle with the margin of the tags you may have in #maincontent. |
Paranoid (IV) Inmate From: London |
posted 02-28-2007 10:45
I think poi has hit the nail on the head, I would just like to add that many developers now find it best practive to have the following rule first in their CSS code: * { padding: 0; margin: 0; } This will set all elements to have a padding and margin of 0, which means that browser defaults aren't used, which means that there should be less inconsistencies between browsers, it does however mean that you'll need to specify the padding and margin for each element you require to have it, this isn't so bad though. |
Paranoid (IV) Inmate From: Norway |
posted 02-28-2007 11:40
Blaise: My * rule includes border:0; because I rarely want a border on images. |
Bipolar (III) Inmate From: Lost Angeles Kalifornia, via Hawaii.... |
posted 02-28-2007 14:15
Sometimes my thinking with CSS still messes me up. I still find myself coming back here to look over previous tips from others to make sure my code is correct, or I'm piecing together the divs accurately. Again, I'm just always gratefull that I can come here for advice. |
Paranoid (IV) Inmate From: Norway |
posted 02-28-2007 14:49 |
Paranoid (IV) Inmate From: Norway |
posted 02-28-2007 14:50
<!-- no comment --> |
Lunatic (VI) Inmate From: under the bed |
posted 02-28-2007 14:58
quote:
|
Bipolar (III) Inmate From: Lost Angeles Kalifornia, via Hawaii.... |
posted 02-28-2007 18:26
ya know I tried to play with using lists for navigation, and even tried several examples but I'm still not there. I'm sure it's relatively simple I just (again, used to hacking html) to get things to work properly, not necessarily the right way. |
Paranoid (IV) Inmate From: Norway |
posted 02-28-2007 18:50
For the IMG/Flash at the top you can easily scrap the DIV#top and replace it with say: |
Bipolar (III) Inmate From: Lost Angeles Kalifornia, via Hawaii.... |
posted 02-28-2007 18:55
So would it be better to eliminate un-needed divs at all possible? And in your example, if I'm using h1 as a general "header", should I rename it to h2 and utilize h1 as you state? Just not sure the "proper" method. |