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.
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.
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;
}
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
Bookmarks