Positoning logo inline with H1 and H2

Thread Solved

Join Date: Oct 2009
Posts: 4
Reputation: tiffinlar is an unknown quantity at this point 
Solved Threads: 0
tiffinlar tiffinlar is offline Offline
Newbie Poster

Positoning logo inline with H1 and H2

 
0
  #1
21 Days Ago
HTML:
HTML and CSS Syntax (Toggle Plain Text)
  1. <div id="header">
  2. <h1>Derby County Football Club</h1>
  3. <h2>Index Page</h2>
  4. <img class="logo" src="image/dcfc_logo.jpg" alt="DCFC Logo" width="120" height="120" />
  5. </div>
CSS:
HTML and CSS Syntax (Toggle Plain Text)
  1. #header{
  2. position: relative;
  3. text-align: right;
  4. border: 1px solid #000;
  5. background: #FFFFFF;
  6. margin: 5px;
  7. padding: 3px;
  8. }
  9. .logo{
  10.  
  11. }

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?
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 348
Reputation: Troy III will become famous soon enough Troy III will become famous soon enough 
Solved Threads: 42
Troy III's Avatar
Troy III Troy III is offline Offline
Posting Whiz
 
0
  #2
21 Days Ago
float the image to the left
css:
.logo {float:left}
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 4
Reputation: tiffinlar is an unknown quantity at this point 
Solved Threads: 0
tiffinlar tiffinlar is offline Offline
Newbie Poster
 
0
  #3
21 Days Ago
Not relevent to a container in the center that im using

and im using boxes, any other suggestions?
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 348
Reputation: Troy III will become famous soon enough Troy III will become famous soon enough 
Solved Threads: 42
Troy III's Avatar
Troy III Troy III is offline Offline
Posting Whiz
 
0
  #4
21 Days Ago
The document flow must always follow the visual flow therefore the obvious is to order the alements according to that flow...

Originally Posted by tiffinlar View Post
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>
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
Last edited by Troy III; 21 Days Ago at 3:54 pm.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 4
Reputation: tiffinlar is an unknown quantity at this point 
Solved Threads: 0
tiffinlar tiffinlar is offline Offline
Newbie Poster
 
0
  #5
21 Days Ago
Originally Posted by Troy III View Post
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 348
Reputation: Troy III will become famous soon enough Troy III will become famous soon enough 
Solved Threads: 42
Troy III's Avatar
Troy III Troy III is offline Offline
Posting Whiz
 
0
  #6
21 Days Ago
you should mark "this thread solved" than.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC