Welcome Guest, Not a member yet? Register   Sign In
Little help with CSS
#2

[eluser]Nick Husher[/eluser]
Try altering your structure and CSS to the following:

Code:
<div class="news">
<div class="arrow-left">
  <img src="images/right.png" />
</div>
<div class="news-items">
  ... add floating items here ...
</div>
<div class="arrow-right">
  <img src="images/right.png" />
</div>
</div>

Code:
.arrow-left { float: left; width: 20px; height: 140px; }
.arrow-right { float: left; width: 20px; height: 140px; }
.news-items { float: left; width: 160px; height: 140px; }

Basically, create an encapsulating box around the middle items. The issue is that floated objects cannot appear higher up in the document than their previous sibling. Your blue floating squares are wrapping around to a second line, invoking that rule.


Messages In This Thread
Little help with CSS - by El Forum - 10-27-2008, 08:25 AM
Little help with CSS - by El Forum - 10-27-2008, 10:15 AM
Little help with CSS - by El Forum - 10-27-2008, 10:18 AM
Little help with CSS - by El Forum - 10-27-2008, 05:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB