Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
My content pane is just not lining up
Old 04-22-2007, 01:53 PM My content pane is just not lining up
houdini987's Avatar
Extreme Talker

Posts: 155
Name: Brian Trudeau
Location: Enfield, CT
Trades: 2
Hi All,

Looking to get some help on alignment here. I've been reading up on CSS positioning but nothing I do seems to be working.

LadyNRed gave me the idea of using < LI > inline styling to put elements side-by-side, but for some reason my content pane "wraps" down underneath the rest of the site...

http://www.corazzinirealestate.com

Can someone tell me what I'm doing wrong? Thanks in advance! here's the code:

HTML Code:
<div class="wrapper">
<div class="homebutton">
<a href="http://www.corazzinirealestate.com">
<img src="http://www.corazzinirealestate.com/portals/_default/skins/spacer.gif" width="100" height="100" />
</a>
</div>
<ul id="navlist">
<li>
<div class="leftmenu">
<a href="http://www.corazzinirealestate.com/tabid/938/Default.aspx" onmouseover="document.images['listings'].src='<%= SkinPath %>/lori-images/listingson.jpg';" onmouseout="document.images['listings'].src='<%= SkinPath %>/lori-images/listingsoff.jpg';">
<img src="<%= SkinPath %>/lori-images/listingsoff.jpg" id="listings" border="0" alt="">
</a><a href="http://www.corazzinirealestate.com" onmouseover="document.images['contact'].src='<%= SkinPath %>/lori-images/contacton.jpg';" onmouseout="document.images['contact'].src='<%= SkinPath %>/lori-images/contactoff.jpg';">
<img src="<%= SkinPath %>/lori-images/contactoff.jpg" id="contact" border="0" alt="">
</a><a href="http://www.corazzinirealestate.com" onmouseover="document.images['portfolio'].src='<%= SkinPath %>/lori-images/portfolioon.jpg';" onmouseout="document.images['portfolio'].src='<%= SkinPath %>/lori-images/portfoliooff.jpg';">
<img src="<%= SkinPath %>/lori-images/portfoliooff.jpg" id="portfolio" border="0" alt="">
</a>
</div>
</li>
<li class="contentpane" runat="server" id="contentpane">
</li>
</ul>
<div class="login">
<dnn:login runat="server" id="dnnLOGIN" />
</div>
</div>
And my css:
Code:
body  {height: 100%;
 background-image: url(lori-images/picketfence.jpg);
 background-repeat: no-repeat;
 background-position: top center;}
.wrapper {width: 800px;
 height: 600px;
 margin: 0 auto;
 border: 1px solid black;
 background-image: url(lori-images/background.gif);}
/* TOP MENU BAR CONTAINER */
.login  {width: 50px;
  height: 20px;
  position: relative;
  bottom: 0px;
  left: 50px;}
.homebutton {width: 100px;
  height: 100px;
  position: relative;
  top: 0px;
  left: 0px;}
.leftmenu {width: 53px;
  height: 500px;
  left: 50px;
  background-color: transparent;
  border: 1px blue solid;
  margin-left: 50px;}
.contentpane {width: 675px;
  height: 488px;
  border: 1px #f19a14 solid;
  background-color: transparent;
  }
ul#navlist
{
padding: 0;
margin: 0;
list-style-type: none;
border: 1px red solid;
}
ul#navlist li { display: inline; }
.dnnlogin  {height: 40px;
  vertical-align: bottom;}
__________________
Trudeau Consulting LLC

Please login or register to view this content. Registration is FREE
houdini987 is offline
Reply With Quote
View Public Profile Visit houdini987's homepage!
 
 
Register now for full access!
Old 04-22-2007, 04:54 PM Re: My content pane is just not lining up
houdini987's Avatar
Extreme Talker

Posts: 155
Name: Brian Trudeau
Location: Enfield, CT
Trades: 2
I think I might have figured it out. For some reason the content pane didn't like being relative positioned. Changed it to absolute and it still stayed within the confines of the wrapper div, so I think I'm all set!
__________________
Trudeau Consulting LLC

Please login or register to view this content. Registration is FREE
houdini987 is offline
Reply With Quote
View Public Profile Visit houdini987's homepage!
 
Old 04-22-2007, 05:03 PM Re: My content pane is just not lining up
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
Changed it to absolute and it still stayed within the confines of the wrapper div,
Unless your #wrapper is set to position: relative, all you did was take the content pane completely OUT of the document flow.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to My content pane is just not lining up
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20724 seconds with 12 queries