www.webdeveloper.com
Results 1 to 6 of 6

Thread: Issues with a layout that has no header/footer

  1. #1
    Join Date
    May 2008
    Posts
    117

    Issues with a layout that has no header/footer

    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:

    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
    Code:
    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!!!

  2. #2
    Join Date
    May 2008
    Posts
    117
    any help here???

  3. #3
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    The structure appears to be this basically:
    Code:
    <!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&#37;;}
    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>
    At least 98% of internet users' DNA is identical to that of chimpanzees

  4. #4
    Join Date
    May 2008
    Posts
    117
    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?

  5. #5
    Join Date
    Feb 2010
    Location
    Alaska
    Posts
    39
    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.

  6. #6
    Join Date
    May 2008
    Posts
    117
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center

"

"

X vBulletin 4.2.2 Debug Information

  • Page Generation 0.36679 seconds
  • Memory Usage 2,919KB
  • Queries Executed 15 (?)
More Information
Template Usage (33):
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (6)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates