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"> link | link | link </p> </div>
but on note, please clarify mean if window resized link should stay aligned....are referring responsive design?
Comments
Post a Comment