html - How to keep navigation text inline with the end of an image -


i'm creating navigation bar , want text, going on right, inline end of image. want stay aligned , in position regardless of whether window resized or not.

i've included image incase haven't explained well:

http://i.stack.imgur.com/qwr6l.png

hopefully guys can help!

is looking achieve ?... http://jsfiddle.net/65fbd/ way achieved float image right , wrap image , links inside div , give min-width attribute. hits minimum width specified in viewport, division not shrink after maintaining inline look.

here css

#navcontainer { width:100%; min-width:400px; height:40px } #image {     float: left; } #links { float:right; } 

and html...

<div id="navcontainer">  <img src="http://dummyimage.com/230x40/123dfe/fff" id="image"/>  <p id="links"> &nbsp;&nbsp;link&nbsp;&nbsp;|&nbsp;&nbsp;link&nbsp;&nbsp;|&nbsp;&nbsp;link&nbsp;&nbsp;</p> </div> 

but on note, please clarify mean if window resized link should stay aligned....are referring responsive design?


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -