View Full Version : Header text adjustment

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.

10-27-2007, 01:07 PM
First of all add

} 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.

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>&nbsp;&nbsp;&nbsp;</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.

10-27-2007, 02:22 PM
This can be achieved by adding margin-top/margin-bottom wherever required.

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?

10-27-2007, 03:43 PM
Have a look at http://www.w3schools.com/css/css_reference.asp


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?

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.

10-27-2007, 04:28 PM
Wow, so the styles override the the normal spaces between h and p tags?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum