Results 1 to 3 of 3

Thread: Sidebar overlapping content in tablets

  1. #1
    Join Date
    May 2006

    Sidebar overlapping content in tablets

    Hello all,

    I have a page at http://www.benchmarkoutsourcing.com that appears to look fine at higher resolutions, but in anything smaller than 800x600 the left sidebar overlaps the content area. Suggestions?


  2. #2
    Join Date
    Dec 2013
    <div style="border:1px solid black;height:500px;width:100px;float:left;">
    this is a sample div

    <div style="border:1px solid black;width:250px;height:500px;float:left;">
    This one is the second sample div

  3. #3
    Join Date
    Feb 2013
    I think you mean column design, for I used a developer tool on your website seen only divs.

    Anyways here's some html/css that might help you get started, for further info or to get more in depth search for css fluid layouts.

    HTML Code:
    <!doctype html>
    <html lang="en">
    	<meta charset="UTF-8">
    	<title>Fixing Grid Problem</title>
    		body { font-size: 100%;	}		
    		.container {
    			/* * For IE 6/7 only * Include this rule to trigger hasLayout and contain floats. */
    			*zoom: 1;
    			width: 100%;
    			max-width: 1100px;
    			margin: 0 auto;
    			box-sizing: border-box;
    		.container:after {
    			clear: both;
    		.container:after {
    			content: " ";
    			display: table;
    		[class^="span"] {
    			float: left;
    			box-sizing: border-box;
    			-moz-box-sizing: border-box;
    			/* Firefox */
    		[class^="span"]:first-child {	margin-left: 0;	}
    		.span5 { width: 41.66666666666667%;	}		
    		.span7 { width: 58.333333333333336%; }
    		.leftSidebar { background-color: orange; }
    		.mainContent { background-color: steelblue; 	}
    		.leftSidebar, .mainContent { padding: 30px;	}
    		h3 { color: #fff; }
    	<div class="container">
    		<div class="span5 leftSidebar">
    			<h3>LEFT SIDEBAR</h3>
    		<div class="span7 mainContent">
    			<h3>MAIN CONTENT</h3>

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

Recent Articles