View Full Version : Header text adjustment
10-27-2007, 01: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, 02: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, 02: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.
10-27-2007, 03:22 PM
This can be achieved by adding margin-top/margin-bottom wherever required.
10-27-2007, 03: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, 04:43 PM
Have a look at http://www.w3schools.com/css/css_reference.asp
10-27-2007, 05: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, 05: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, 05:28 PM
Wow, so the styles override the the normal spaces between h and p tags?
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.