Click to See Complete Forum and Search --> : Issues with a layout that has no header/footer


lindsayanng
12-16-2009, 08:54 PM
I hate this website. Let me just say that it wasn't my idea to create a rounded edge website that is aligned right and REALLY SMALL because it can't really scroll vertically.

So i am working to crap as much info into this screen size page as possible by using image slideshows and tabbed navigation (jquery tabbed interface).

I am having a MAJOR issue with the positioning of these elements. I basically do not have a header, footer, and main.. I have a sidebar (on the left) and a main. within the main content I would like to have three divs stacked on top of each other.

So have a look here:
http://bscphoto.com/testing/testing2/Untitled-8.html

the container is not expanding as I add more content, which makes the rest of the content look like its falling off of the page.

I tried removing the absolute positioning of the mainContent div, and that ended up with everything pushed down around 150px (but there were no margins or anything set - it was just aligning about 150px from the top of the page)_

Anyways.. if someoen can take a look and help point me in the right direction, i would REALLY appreciate it. I'm SOOO lost right now I havent a clue what to do.

here is the html code:

<body class="twoColFixLt">

<div id="container">
<div id="sidebar1" class="menu">
<ul>
<li><a class="hide" href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/menu/index.html">Wedding Services&nbsp;&nbsp;</a>

<!--[if lte IE 6]>
<a href="../menu/index.html">DEMOS
<table><tr><td>
<![endif]-->

<ul>
<li><a href="weddings/index.html" title="connecticut professional fun and entertaining DJ MC and Lighting">weddings main</a></li>
<li><a href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/menu/embed.html" title="Wrapping text around images">wrapping text</a></li>
<li><a href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/menu/form.html" title="Styling forms">styled form</a></li>
</ul>

<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->

</li>

<li><a class="hide" href="../index.html">Corporate & Private Events&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>

<!--[if lte IE 6]>
<a href="index.html">MENUS
<table><tr><td>
<![endif]-->

<ul>
<li><a href="../spies.html" title="a coded list of spies">spies menu</a></li>
<li><a href="../vertical.html" title="a horizontal vertical menu">vertical menu</a></li>
<li><a href="../expand.html" title="an enlarging unordered list">enlarging list</a></li>
<li><a href="../enlarge.html" title="an unordered list with link images">link images</a></li>
</ul>

<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->

</li>

<li><a class="hide" href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/layouts/index.html">Recording Studio&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>

<!--[if lte IE 6]>
<a href="../layouts/index.html">LAYOUTS
<table><tr><td>
<![endif]-->

<ul>
<li><a href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/layouts/bodyfix.html" title="Cross browser fixed layout">Fixed 1</a></li>
<li><a href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/layouts/body2.html" title="Cross browser fixed layout">Fixed 2</a></li>
<li><a href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/layouts/body4.html" title="Cross browser fixed layout">Fixed 3</a></li>
<li><a href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/layouts/body5.html" title="Cross browser fixed layout">Fixed 4</a></li>
</ul>

<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->

</li>

<li><a class="hide" href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/boxes/index.html">About Us&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>

<!--[if lte IE 6]>
<a href="../boxes/index.html">BOXES
<table><tr><td>
<![endif]-->

<ul>
<li><a href="../spies.html" title="a coded list of spies">spies menu</a></li>
<li><a href="../vertical.html" title="a horizontal vertical menu">vertical menu</a></li>
</ul>

<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->

</li>

<li><a class="hide" href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/mozilla/index.html">Request A Consultation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>

<!--[if lte IE 6]>
<a href="../mozilla/index.html">MOZILLA
<table><tr><td>
<![endif]-->

<ul>
<li><a href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/mozilla/dropdown.html" title="A drop down menu">drop down menu</a></li>
<li><a href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/mozilla/cascade.html" title="A cascading menu">cascading menu</a></li>
<li><a href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/mozilla/content.html" title="Using content:">content:</a></li>
</ul>

<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->

</li>

<li><a class="hide" href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/ie/index.html">Contact Us&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>

<!--[if lte IE 6]>
<a href="../ie/index.html">EXPLORER
<table><tr><td>
<![endif]-->

<ul>
<li><a href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/ie/exampleone.html" title="Example one">example one</a></li>
<li><a href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/ie/weft.html" title="Weft fonts">weft fonts</a></li>
<li><a href="file:///PortoPotty/Users/PortoPotty/Documents/webdesign/AMS/ie/exampletwo.html" title="Vertical align">vertical align</a></li>
</ul>

<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->

</li>

</ul></div>
<div id="mainContent">
<div id="headerIMG"> <img src="weddings/pagegraphics/weddingtext.png" width="575" align="right"/>
</div>
<div id="slideContainer"><div id="slideshow">
<ul>
<li><img src="weddings/images/shaun_phillips_004.jpg" alt="Css Template Preview" height="267px" align="center" /></a></li>
<li><img src="weddings/images/shaun_phillips_030.jpg" alt="Css Template Preview" height="267px" align="center" /></li>
<li><img src="weddings/images/shaun_phillips_084.jpg" alt="Css Template Preview" height="267px" align="center" /></a></li>
<li><img src="weddings/images/shaun_phillips_425.jpg" alt="Css Template Preview" height="267px" align="center"/></a></li>
<li><img src="weddings/images/ams_012.jpg" alt="Css Template Preview" height="387" align="center"/></a></li>
</ul>
</div></div>
<!-- end #mainContent --></div>
<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
<!-- end #container --></div>
</body>

here is the CSS
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #000000;
margin: 0;
padding: 0;
text-align: center;
color: #000000;
}
.twoColFixLt #container {
width: 960px;
background:url(weddings/pagegraphics/wedding_bg.jpg);
margin: 0 auto;
float:right;
border: 1px solid #000000;
text-align: left;
}
.twoColFixLt #sidebar1 {
float: left; /* since this element is floated, a width must be given */
width: 200px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
background: transparent; /* the background color will be displayed for the length of the content in the column, but no further */
margin-top:250px;
}
.twoColFixLt #mainContent {
margin: 0 0 0 250px; /* the left margin on this div element creates the column down the left side of the page - no matter how much content the sidebar1 div contains, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends. */
padding: 0 20px 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
position:absolute;
}
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
#headerIMG{
margin:0 auto;
position:relative;
}


#slideContainer{
background:url(../weddings/pagegraphics/sliderBG.png) no-repeat top center;
width:680px;
height:410px;
margin-top:125px;
position:relative;
}

#slideshow{
width:580px;
float:right;
margin-right:40px;
position:relative;
margin-top:125px;

}
#slideshow ul, #slider li,
#slider2 ul, #slider2 li{
margin:0;
padding:0;
list-style:none;
}
#slideshow2{margin-top:1em;}
#slideshow li, #slider2 li{
/*
define width and height of list item (slide)
entire slider area will adjust according to the parameters provided here
*/
width:580px;
height:267px;
overflow:hidden;
text-align:center;
background:#000;
}

I appreciate ANY help that you can offer me!!!

lindsayanng
12-17-2009, 07:38 PM
any help here???

Fang
12-18-2009, 02:04 AM
The structure appears to be this basically:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<style type="text/css">
* {margin:0;padding:0;}
div {height:10em; width:100%;}
body {width:600px; margin:auto;}
#container {overflow:hidden;}
#menu, #gallery {float:left; width:50%;}
#header {background:#ccc;}
#menu {background:#9cf;}
#gallery {background:#fc9;}
#content {background:#eee;}
</style>

</head>
<body>
<div id="header">header</div>
<div id="container">
<div id="menu">menu</div><div id="gallery">gallery</div>
</div>
<div id="content">content</div>
</body>
</html>

lindsayanng
12-18-2009, 10:20 AM
No.. thats not what i have. I have a container that is aligned right and there is no header the way that you have it.

I created a diagram. Did you look at the link too?

Excavatorak
02-21-2010, 03:32 PM
Hello lindsayanng,
Are you still looking for help on this? I see this thread is almost 2 months old...

It doesn't look like much trouble but I won't bother if you've moved on to another project.

lindsayanng
02-21-2010, 04:34 PM
Thanks for offering the help, I actually worked it out myself.. If i could remember what I did to fix it I would post here, but I jumped through a lot of options before I got there.. Luckily in the meantime I also got a lot of knowledge of CSS as I did that