Jump to content

float and objects


daled

Recommended Posts

here's my problem.  when the div classes below don't have the float attribute, the object shows up, but the curves are out of place.  but when the classes have the float attribute, the curves show up but the object doesn't.  help.

 

 

here's the code:

<div class='topleft'><div class='topright'><div class='bottomright'><div class='bottomleft'>
					<div style="float:left; width:100%;	height:16px; background:url(images/contenth3bg.png) repeat-x; margin-top:15px; padding-left:10px;padding-bottom:5px; padding-top:5px;"><span style="color:#cccccc; font-family:'Verdana'; font-weight:bold; font-size:14px; float:left;"><?php echo $row_songs['track']; ?></span><span style="float:right;"><?php echo $echoreport; ?></span></div>

					<img src='<?php echo $row_av['avatar']; ?>' style='float:right; padding:10px;'>

					<span style="vertical-align:50%; height:50px; padding-left:10px;">off of <B><?php echo $row_songs['bandname']; ?></B>'s new <B><?php echo $row_songs['genre']; ?></B> album <B><?php echo $row_songs['album']; ?></B>.</span>
					<br>
					<object codetype='audio/x-mpeg' data='<?php echo $row_url['url']; ?>' type='audio/x-mpeg' autostart='false' standby='Loading...' style="width: 50%; height: 15px; padding-left:10%; float:left;"></object>
				</div></div></div></div>

code for div classes:

.topleft {
float:left;
background:url(images/topleft.png) top left no-repeat #d5d5d5;
margin-left:3px;
margin-top:5px;
margin-bottom:5px;
}
.topright {
float:left;
background:url(images/topright.png) top right no-repeat;
}
.bottomright {
float:left;
background:url(images/bottomright.png) bottom right no-repeat;
}
.bottomleft {
float:left;
background:url(images/bottomleft.png) bottom left no-repeat;
}

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.