|
|
|
|
|
|
|
![]() |
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
![]() |
#1 |
Me fail English? That's unpossible!
|
Any CSS experts? 'Simple' question on header tags
Ahhhhh my eyes burn from searching the web for help.
I want to have the very top of my page have this centered: HEADER ONE - HEADER TWO with of course header one the <h1> and header two the <h2>. I'll have an image underneath it and I want no padding in between the header text and the image. Thats it. Hope it makes sense. |
![]() |
![]() |
![]() |
#2 |
Bonged
Join Date: Mar 2003
Location: BrisVegas, AUSTRALIA
Posts: 4,882
|
HW, is this what you are looking for...
Code:
<style type="text/css"> h1 { display: inline; } h2 { display: inline; } </style> DD |
![]() |
![]() |
![]() |
#3 |
There's Xanax in my thurible!
|
Dave is correct on the diplay type, but you had other needs and with just changing the display type your image will be on the same line as your headers.
Wrap those headers in a div like so HTML Code:
<div id="centerme"><h1>xxx</h1><h2>yyy</h2></div> HTML Code:
h1, h2 {display: inline; margin-bottom: 0;} div#centerme {text-align: center;} ![]() |
![]() |
![]() |
![]() |
#4 |
Me fail English? That's unpossible!
|
thanks guys the inline was what I needed! I knew this was the right place to ask.
![]() |
![]() |
![]() |
![]() |
|
|