| | |
Positoning logo inline with H1 and H2
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Oct 2009
Posts: 4
Reputation:
Solved Threads: 0
HTML:
CSS:
What i want is to display the H1 and H2 on the right, and have the logo on the left all in line with each other. any suggestions?
HTML and CSS Syntax (Toggle Plain Text)
<div id="header"> <h1>Derby County Football Club</h1> <h2>Index Page</h2> <img class="logo" src="image/dcfc_logo.jpg" alt="DCFC Logo" width="120" height="120" /> </div>
HTML and CSS Syntax (Toggle Plain Text)
#header{ position: relative; text-align: right; border: 1px solid #000; background: #FFFFFF; margin: 5px; padding: 3px; } .logo{ }
What i want is to display the H1 and H2 on the right, and have the logo on the left all in line with each other. any suggestions?
0
#4 20 Days Ago
The document flow must always follow the visual flow therefore the obvious is to order the alements according to that flow...
Therefore (for it to Function) you should make (the hilighted) adequate change to your stuctural code too. You should remove that "position:relative" if you Iike to preserve the integrity of your boxes too! Thought you knew that - and don't forget to remove the right alignement of your headers also, - it looks better left-aligned, right by the image logo, to my taste ofcourse.
Regards
•
•
•
•
HTML:
<div id="header"> <img class="logo" src="image/dcfc_logo.jpg" alt="DCFC Logo" width="120" height="120" /> <h1>Derby County Football Club</h1> <h2>Index Page</h2> </div>
Regards
Last edited by Troy III; 20 Days Ago at 3:54 pm.
•
•
Join Date: Oct 2009
Posts: 4
Reputation:
Solved Threads: 0
0
#5 20 Days Ago
•
•
•
•
The document flow must always follow the visual flow therefore the obvious is to order the alements according to that flow...
Therefore (for it to Function) you should make (the hilighted) adequate change to your stuctural code too. You should remove that "position:relative" if you Iike to preserve the integrity of your boxes too! Thought you knew that - and don't forget to remove the right alignement of your headers also, - it looks better left-aligned, right by the image logo, to my taste ofcourse.
Regards
thanks, its sorted
![]() |
Similar Threads
- XP bootup freezes at logo/loading bar screen (Windows NT / 2000 / XP)
- Need Logo Designer,Web Banner Designer,Graphic Designer? (Post your Resume)
- How to Quickly Lock Your Computer and Use Other Windows Logo Shortcut Keys (Windows tips 'n' tweaks)
- Disable XP Boot Logo (Windows tips 'n' tweaks)
- Freelance Designer Wanted! Real Estate Logo Needed. (Post your Resume)
- Windows XP pro stalls on start up, XP logo faded out (Windows NT / 2000 / XP)
- Don't Ignore the Windows Logo Key (Windows tips 'n' tweaks)
- How to modify/change a logo on a wallpaper? (Graphics and Multimedia)
Other Threads in the HTML and CSS Forum
- Previous Thread: Google search bar
- Next Thread: Different Monitor resolutions changing layout! Help
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7





