2 replies [Last post]
pospiech
Offline
Regular
Last seen: 12 years 44 weeks ago
Joined: 2004-02-16
Posts: 23
Points: 0

I have the following code:
<div class="sidebar">
...
</div>
<div class="content">
<div class="youarehere">
<span class="left bread"><?php breadCrumb($page_URI); ?></span>
<span class="right date"><?php include 'php/date_printout.php';?></span>
</div>
<br class="clear">
<?php if($page_URI_content!="") {require_once ("$page_URI_content");}?>
<div class="spacer"></div>
</div>

on my website with http://www.matthiaspospiech.de/links/allgemein/ you can see the problem: The content is below the sidebar.
If I take out the <br class="clear"> then the header (here 'Sonstiges')
appears directly after "aktuelle Seite" in the left part of youarehere

left and right are defined as this
.left {
float: left;
text-align: left;
}

.right {
float: right;
text-align: right;
}

Hope the problem is clear.
Matthias

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 16 hours 46 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

problem with float

Hi pospiech,
I couldn't get to the page Sad
Try adding widths to your floated elements

pospiech
Offline
Regular
Last seen: 12 years 44 weeks ago
Joined: 2004-02-16
Posts: 23
Points: 0

problem with float

Currently I am working on a different project which has moved to that webspace for testing. I had to remove the htaccess file for that.

But surely I will come up with that problem sooner or later when I can work again on that project.

Matthias