This is a discussion on "header font formatting question" within the Web Page Design section. This forum, and the thread "header font formatting question are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
header font formatting question
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
header font formatting question
I have inherited a school website. I am currently removing all the tables embedded in tables embedded in tables used for formatting and going more toward CSS based code.
I am having a problem getting the header with the school name to display the way I want it. I would like to have the font to be 24px vertically centered in an area with a height of 30. If I just set the font to be 24px I get a huge amount of white space around my text. If I set the height in my CSS file the text is not centered vertically. Is there any way to do what I want or will I be stuck using an img file to display my text? CSS code: .CssHeader { color: black font-family: Arial; font-size: 24px; font-weight: bold; padding-left: 5px; height: 30; } HTML code: <div class="CssHeader"> <p>My School Name</p> </div> <!-- #header --> |
|
|
|
||||
|
Re: header font formatting question
Yeah, here's the shorthand method and the longhand method...
Longhand:
|
![]() |
| Tags |
| css |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Simple Question: Why does Font Style change on Web Page in different Browse | BlackReef | Web Page Design | 11 | Dec 7th, 2007 09:39 |
| Font size question on websites? | ugadawgvi | Starting Out | 2 | Aug 3rd, 2007 16:50 |
| IE7 font size and formatting - help | Xhristy | Web Page Design | 4 | Apr 3rd, 2007 17:35 |
| flash font question | tigas langaw | Flash & Multimedia Forum | 8 | Jan 6th, 2007 06:01 |
| Font question | itorch | Graphics and 3D | 58 | Dec 13th, 2006 14:26 |