Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 05:29 PM.


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