Log in

View Full Version : Div has specified width but goes longer alone



Vaonline
01-30-2014, 05:34 AM
Hello.
I don't understand why a div that has 160 of width takes all width space of the div it is inside.
The trouble is here: http://www.peliculadicto.tk/tag/peliculas/ It is the sidebar.
And it causes the index of movies going down and making a big empty white space.

Now, involved div ids are: normalizador, sidebar, searchit and category2. You can take a look with the inspector element.

Any help is truly aprecciated.
Thanks.

jscheuer1
01-30-2014, 09:07 AM
In the peliculadicto.tk/wp-content/themes/cuevaidens/css/estilos7.css file, add the highlighted:


#normalizador {
position: relative;
left: 40px;
top: 38px;
float: left;
}

Vaonline
01-30-2014, 06:03 PM
In the peliculadicto.tk/wp-content/themes/cuevaidens/css/estilos7.css file, add the highlighted:


#normalizador {
position: relative;
left: 40px;
top: 38px;
float: left;
}

Thank you very much! You are always very helpful... :D i would never have realized about the float.