css - Floats affecting other divs? -


i have webpage made here: http://jsfiddle.net/km9hj/

<!doctype html /> <head>      <title>home</title>     <link href="stylesheet.css" rel="stylesheet" type="text/css" />  </head> <body>      <div id="logo">         <img style="width:50; height:50; float:left;" src="content/portal%20layered.png"/>         <img style="width:50; height:50; position:relative; left:-50px; z-index:2;" src="content/blank.png"/>         <div><h2 id="headerh2">cody shearer</h2></div>     </div>      <div id="wrapper">      <div style="background-color:#565656">     <div id="links"><a href="home.htm" class="home" id="link">home</a></div>     <div id="links"><a href="about%20me.htm" class="aboutme" id="link">about me</a></div>     <div id="links"><a href="gallery.htm" class="gallery" id="link">gallery</a></div>     </div>             <article id="para">                 <p>about website</p>                 <div id="paral2"><p>about page:</p> <div id="parap">this is</div></div></article>     </div>  </body> 

if @ div says "about page:" see positioned far right of div , part of cut off (you may have resize result area see this). want words stay on 1 line , aligned left. have seen issue can fixed removing "float:left" #links area, or can helped little removing "width: 150px;" #link. issue spent long time trying other s

adding clear:left may you.

#para {    clear:left;    .... 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -