Hello, I'm building webpage layout which includes 5px wide DIV which i use as spacer, if i define my steyle like that
div#main_spc{
display: block;
width: 5px;
background: url(../Images/contsep.gif) repeat-y top center;
float: left;
position: relative;
}
and put height inline
<div id="main_spc" style="height: 356px;"></div>
everything works as it should, but when i alter my code to apply height from outside CSS file
div.main_spc{
display: block;
width: 5px;
background: url(../Images/contsep.gif) repeat-y top center;
float: left;
position: relative;
}
div.main_spc.abc{
height: 356px;
}
and alter XHTML code like this
<div class="main_spc abc"></div>
sorry for TYPO, ofcourse it always was CLASS instead of STYLE, i was writing this question in hurry and i missed that, If it was a case then firebug would got problem to point CSS definition in first place!
DIV is invisible, atleast i put some contents inside, then DIV is text height tall.
I tryied to inspect this element from firebug and while source is ok, HEIGHT is ommited by firefox (and probably other browsers) and firebug displays this CSS element as
div.main_spc.abc{
}
I wonder how to alter my CSS to make height not be dismissed from style definition?
Thanks in advance for all answers
MTH