Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2007-05-02, 09:22 PM   #1
HowlingWulf
Me fail English? That's unpossible!
 
HowlingWulf's Avatar
 
Join Date: Dec 2003
Location: FL
Posts: 1,381
Send a message via ICQ to HowlingWulf
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.
__________________
WordPress Porn directory theme => Maddos
Create a Porn Tube => Video Pornster
HowlingWulf is offline   Reply With Quote
Old 2007-05-02, 10:07 PM   #2
DangerDave
Bonged
 
DangerDave's Avatar
 
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
DangerDave is offline   Reply With Quote
Old 2007-05-02, 11:54 PM   #3
Preacher
There's Xanax in my thurible!
 
Preacher's Avatar
 
Join Date: Apr 2005
Location: Wherever they screw on my head
Posts: 2,441
Send a message via ICQ to Preacher
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>
Another reason you should wrap those headers in a div, is because changing the display type to inline will now force the size of the header tags to be the actual width of the text, so adding a text-align of center to the headers won't align them correctly.

HTML Code:
h1, h2 {display: inline; margin-bottom: 0;}
div#centerme {text-align: center;}
Make sure your image is not in that div. Then just center your image as you normally would on the next line. I wouldn't recommend css for that unless you know what you are doing because FF & IE render differently.
__________________
NSCash * This Depraved World
Preacher is offline   Reply With Quote
Old 2007-05-03, 11:22 AM   #4
HowlingWulf
Me fail English? That's unpossible!
 
HowlingWulf's Avatar
 
Join Date: Dec 2003
Location: FL
Posts: 1,381
Send a message via ICQ to HowlingWulf
thanks guys the inline was what I needed! I knew this was the right place to ask.
__________________
WordPress Porn directory theme => Maddos
Create a Porn Tube => Video Pornster
HowlingWulf is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:32 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc