vinoman
10-27-2007, 12:44 PM
I know this is simple, but how do I get the header title equal distance between top and bottom?
Please view: http://www.nwparkingcontrol.com
I tried to add more to top margin, but that didn't move it down.
abduraooft
10-27-2007, 01:07 PM
First of all add
*{
margin:0;
padding:0;
} in to your CSS to remove all default margins and paddings(this will help you to get a uniform layout in all browser by setting specific values).
then add padding-top:40px or some equivalent to header h1.
vinoman
10-27-2007, 01:38 PM
Thanks, that works! http://www.nwparkingcontrol.com
How would I add extra white space between text and image to make the site taller?
I've tried using [<p> </p>] and I don't think that works very well. I tried adding padding to the img style and that didn't work. Maybe I wrote it wrong.
abduraooft
10-27-2007, 02:22 PM
This can be achieved by adding margin-top/margin-bottom wherever required.
vinoman
10-27-2007, 02:45 PM
Thanks again. I added margins to the image. How do you add margins to a paragraph of text? [<p>text</p>]
Also: what's the style to center all the text and image?
abduraooft
10-27-2007, 03:43 PM
Have a look at http://www.w3schools.com/css/css_reference.asp
p{
margin-left:auto;
margin-right:auto;
}
vinoman
10-27-2007, 04:04 PM
OK, I did that, but why isn't there a space between the h4 tags, h3 tagsand the first p tags?
abduraooft
10-27-2007, 04:23 PM
The answer is in my first post.
In order to get gaps between elements, you have to explicitly specify how much you want.
vinoman
10-27-2007, 04:28 PM
Wow, so the styles override the the normal spaces between h and p tags?