jaxbrian
asked on
Trying to expand a div left over a few other boxes
Hello, I am trying to float a div to the right that has content hidden in it so when it is clicked it expands to the size I want and the other content is displayed. the problem I am having is that it hits the div that is next to it and it moves everything down and expands. I put all my code in jsfiddle at this location.
http://jsfiddle.net/jaxbrian/deuXm/
thanks for any help with this.
Jaxbrian
http://jsfiddle.net/jaxbrian/deuXm/
thanks for any help with this.
Jaxbrian
unable to get the issue in the new link as well..
Can u please give some more detail information...
Can u please give some more detail information...
ASKER
I have placed the code below and fixed the jsfiddle as well. seemed that the jQuery UI 1.8.9 tab needed to be selected. may have done that and didn't update. here is the new link, http://jsfiddle.net/jaxbrian/deuXm/7/
thank you very much
thank you very much
<html>
<head>
<script>
$(document).ready(function(){
$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
});
$(function() {
$('#mag-container').click(function() {
$(this).animate({
width: '+=430'
}, 500, function() {});
}, function () {
$('#mag-container').animate({
width: '-=400'
});
});
});
</script>
<style>
#wrapper {
height: 1655px;
width: 980px;
background-repeat: no-repeat;
padding-top: 0px;
background-color:#FFF;
box-shadow: 0px 0px 5px #888888;
border-right-width: 5px;
border-bottom-width: 15px;
border-left-width: 5px;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-right-color: #4c7c17;
border-bottom-color: #4c7c17;
border-left-color: #4c7c17;
border-top-width: 5px;
border-top-style: solid;
border-top-color: #4c7c17;
}
#news-container {
height: 350px;
width: 980px;
}
#news-feed {
height:335px;
width:750px;
clear: right;
float: left;
}
#mag-container {
height: 335px;
width: 210px;
float:right;
clear: none;
overflow: hidden;
position:relative;
z-index:100;
display:inline;
}
#featured{
width:475px;
padding-left:5px;
padding-right:265px;
padding-top:10px;
position:relative;
border:0px solid #ccc;
height:320px;
overflow:hidden;
font-family: Arial, Helvetica, sans-serif;
/* background:#fff;*/
}
#featured ul.ui-tabs-nav{
position:absolute;
top:10px; left:485px;
list-style:none;
padding:0; margin-left:15px;
width:240px; height:250px;
overflow:auto;
overflow-x:hidden;
font-family: Arial, Helvetica, sans-serif;
}
#featured ul.ui-tabs-nav li{
padding:1px 0; padding-left:13px;
font-size:12px;
color:#666;
font-family: Arial, Helvetica, sans-serif;
}
#featured ul.ui-tabs-nav li img{
float:left; margin:2px 5px;
clear:right;
/*background:#fff; */
padding:2px;
border:1px solid #eee;
}
#featured ul.ui-tabs-nav li span{
font-size:14px; font-family: Arial, Helvetica, sans-serif;
line-height:18px;
}
#featured li.ui-tabs-nav-item a{
display:block;
height:60px; text-decoration:none;
color:#333; /*background:#fff; */
line-height:20px; outline:none;
}
#featured li.ui-tabs-nav-item a:hover{
background:#f2f2f2;
}
#featured li.ui-tabs-selected{
background:url('images/selected-item.gif') top left no-repeat;
}
#featured ul.ui-tabs-nav li.ui-tabs-selected a{
background:#ccc;
}
#featured .ui-tabs-panel{
width:500px;
height:313px;
background:#999;
position:relative;
border:solid #006363 1px;
}
#featured .ui-tabs-panel .info{
position:absolute;
bottom:0; left:0;
height:70px;
background: url('images/transparent-bg.png');
}
#featured .ui-tabs-panel .info a.hideshow{
position:absolute; font-size:16px; font-family: Arial, Helvetica, sans-serif; color:#f0f0f0; right:10px; top:-20px; line-height:20px; margin:0; outline:none; background:#333;
}
#featured .info h2{
font-size:22px; font-family: Arial, Helvetica, sans-serif;
color:#fff; padding:5px; margin:0; font-weight:normal;
overflow:hidden;
}
#featured .info p{
margin:0 5px;
font-family: Arial, Helvetica, sans-serif; font-size:16px;
line-height:15px; color:#f0f0f0;
}
#featured .info a{
text-decoration:none;
color:#fff;
}
#featured .info a:hover{
text-decoration:underline;
}
#featured .ui-tabs-hide{
display:none;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="news-container">
<div id="news-feed"><div id="featured" >
<ul class="ui-tabs-nav">
<li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-1"><a href="#fragment-1"><img src="images/small-1.jpg" alt="" /><span> New Website</span></a></li>
<li class="ui-tabs-nav-item" id="nav-fragment-2"><a href="#fragment-2"><img src="images/small-2.jpg" alt="" /><span>Changes the World</span></a></li>
<li class="ui-tabs-nav-item" id="nav-fragment-3"><a href="#fragment-3"><img src="images/small-3.jpg" alt="" /><span>Tips</span></a></li>
<li class="ui-tabs-nav-item" id="nav-fragment-4"><a href="#fragment-4"><img src="images/small-2.jpg" alt="" /><span>Show</span></a></li>
</ul>
<!-- First Content -->
<div id="fragment-1" class="ui-tabs-panel" style="">
<img src="images/11.jpg" alt="" />
<div class="info" >
<h2>get</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tincidunt condimentum lacus. Pellentesque ut diam....<a href="#" >read more</a></p>
</div>
</div>
<!-- Second Content -->
<div id="fragment-2" class="ui-tabs-panel ui-tabs-hide" style="">
<img src="images/22.jpg" alt="" />
<div class="info" >
<h2><a href="#" >help</a></h2>
<p>Vestibulum leo quam, accumsan nec porttitor a, euismod ac tortor. Sed ipsum lorem, sagittis non egestas id, suscipit....<a href="#" >read more</a></p>
</div>
</div>
<!-- Third Content -->
<div id="fragment-3" class="ui-tabs-panel ui-tabs-hide" style="">
<img src="images/33.jpg" alt="" />
<div class="info" >
<h2><a href="#" >Tips</a></h2>
<p>liquam erat volutpat. Proin id volutpat nisi. Nulla facilisi. Curabitur facilisis sollicitudin ornare....<a href="#" >read more</a></p>
</div>
</div>
<!-- Fourth Content -->
<div id="fragment-4" class="ui-tabs-panel ui-tabs-hide" style="">
<img src="images/22.jpg" alt="" />
<div class="info" >
<h2><a href="#" >Show</a></h2>
<p>liquam erat volutpat. Proin id volutpat nisi. Nulla facilisi. Curabitur facilisis sollicitudin ornare....<a href="#" >read more</a></p>
</div>
</div>
</div>
</div>
<div id="mag-container"><table border="0" cellpadding="0" cellspacing="0" width="600px" bgcolor="#FFFFFF">
<tr>
<td width="30%" ><table width="209px" height="350px" style="background-image:url(images/mag-container-small.png)" cellpadding="0" cellspacing="0"> <tr> <td valign="top"> <p><b><font color="#4c7c17"> Content <strong>here</strong></font></b></p> </td> </tr></table>
<span>
<td width="63%" valign="top" bgcolor="#FFFFFF" style="padding-left:20px">content here<br />
</td>
<td width="7%" align="right">content here</td>
</span>
</tr>
</table>
</div>
</div>
</div>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
http://jsfiddle.net/jaxbrian/deuXm/1/