Forum Moderators: not2easy
Anyone here good a CSS and would mind offering some advice?
The CSS code I have is:
#login_comunity{ float: left; width: 700px;}
#search{ position: inherit; float: left; width: 150px; text-align: right; padding: 12px 0px 0px 0px;}
#comunity{ display: inline; position: inherit; float: left; width: 165px; padding: 14px 0px 0px 0px;}
position:inherit
What position are you trying to inherit? This may conflict with your floats?! Try removing this in your styles above?
Floated elements generally are 'bunched up'. You can use padding and margin to separate them.
How floated elements appear will also depend on the order they appear in your HTML. If your HTML is in the same order (and ignoring your 'position') then you should have 3 cols: 700, 150 and 165 px wide respt.
I edited the css file to remove 'position' and it did not resolve the problem. Can anyone see any other problems?
Or, may be you are missing a closing </div>? Your code as it stands above does indeed appear to be missing a closing </div> somewhere! Your final line "
</div><!--login_comunity_search-->" actually closes "login_comunity_search_left", not "login_comunity_search" as you suggest.
<div id="login" class="clearfix">
What is your 'clearfix' class? I guess this is to clear any floated elements inside the container? Just make sure, however, that it's not clearing the container itself.