Results 1 to 5 of 5

Thread: [RESOLVED] Div Help Please

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2017
    Posts
    3

    Resolved [RESOLVED] Div Help Please

    im trying to build this website for myself http://www.mabrodie.co.uk but im having problems with the right div its not showing all the text properly can you help please i have attached all my code so far?.mabrodie.co.uk.zip

  2. #2
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Div Help Please

    Welcome to the forum!

    I am genuinely afraid to both click on that link or to open that zip.

    Show some code instead.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2017
    Posts
    3

    Re: Div Help Please

    HTML

    HTML Code:
    <!DOCTYPE html>
    <html>
    <head>
    	<link rel="stylesheet" href="css/styles.css" type="text/css">
    	<link rel="stylesheet" href="css/font-awesome.min.css" type="text/css">
    	<link href="css/jquery.bxslider.css" rel="stylesheet" />
    
    	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    	<title>Test</title>
    </head>
    <body>
    
    	<div class="wrapper">
    		
    		<header>
    			<h2>Test Banner</h2>
    		</header>
    		
    		<div class="navagationDesktop">
    			<nav>
    				<ul>
    					<li><a href="#">Programming</a>
    						<ul>
    							<li><a href="#">C++</a></li>
    							<li><a href="#">C#</a></li>
    							<li><a href="#">Java</a></li>
    							<li><a href="#">Web Dev &raquo;</a>
    							<ul>
    								<li><a href="#">Javascript</a></li>
    								<li><a href="#">PHP</a></li>
    								<li><a href="#">Ruby</a></li>
    							</ul>
    							</li>
    							<li><a href="#">Python</a></li>
    						</ul>
    					</li>
    					
    					<li><a href="#">OS</a>
    						<ul>
    							<li><a href="#">Windows</a></li>
    							<li><a href="#">Macintosh</a></li>
    							<li><a href="#">Linux</a></li>
    						</ul>
    					</li>
    					
    					<li><a href="#">Projects</a>
    						<ul>
    							<li><a href="#">Android</a></li>
    							<li><a href="#">iOS</a></li>
    							<li><a href="#">Web</a></li>
    							<li><a href="#">Windows</a></li>
    						</ul>
    					</li>
    					
    					<li><a href="#">About</a></li>
    
    				</ul>
    			</nav>
    		</div>
    
    		<input type="checkbox" class="menucheck" id="menu" />
    		<label for="menu" class="menuicon"></label>
    
    		<div class="navagationMobile">
    			<div class="item">
    				<input type="checkbox" id="item1">
    				<label for="item1">Programming</label>
    				<ul>
    					<li><a href="#">C++</a></li>
    					<li><a href="#">C#</a></li>
    					<li><a href="#">Java</a></li>
    					<li><a href="#">Javascript</a></li>
    					<li><a href="#">PHP</a></li>
    					<li><a href="#">Ruby</a></li>
    					<li><a href="#">Python</a></li>
    				</ul>
    			</div>
    
    			<div class="item">
    				<input type="checkbox" id="item2">
    				<label for="item2">OS</label>
    				<ul>
    					<li><a href="#">Windows</a></li>
    					<li><a href="#">Macintosh</a></li>
    					<li><a href="#">Linux</a></li>
    				</ul>
    			</div>
    
    			<div class="item">
    				<input type="checkbox" id="item3">
    				<label for="item3">Projects</label>
    				<ul>
    					<li><a href="#">Android</a></li>
    					<li><a href="#">iOS</a></li>
    					<li><a href="#">Web</a></li>
    					<li><a href="#">Windows</a></li>
    				</ul>
    			</div>
    
    			<div class="item">
    				<a class="itemlast" href="#">About</a>	
    			</div>
    
    		</div>
    
           	<div id="content">
           	
           		<div id="left">
           			<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
           			<br>
           			Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
           			</p>
           		</div>
    
           		<div id="right">
           			<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.
           			<br>
           			There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.</p>
           		</div>
    
           	</div>
    
           	<div class='clear'></div>
    
    		<footer>
    				Mark Alexander Brodie &copy; 2017
    		</footer>
    
    	</div>
    
    <script>
    var myIndex = 0;
    carousel();
    
    function carousel() {
        var i;
        var x = document.getElementsByClassName("mySlides");
        for (i = 0; i < x.length; i++) {
           x[i].style.display = "none";  
        }
        myIndex++;
        if (myIndex > x.length) {myIndex = 1}    
        x[myIndex-1].style.display = "block";  
        setTimeout(carousel, 2000); // Change image every 2 seconds
    }
    </script>
    
    
    </body>
    </html>

    CSS

    HTML Code:
    *{
    	padding:0;
    	margin:0;
    	box-sizing:border-box; 
    }
    
    html{
    	height: 100%;
    }
    
    .wrapper{
    	min-height: 100%;
    	width: 100%;
    	position: relative;
    }
    
    body{
    	height: 100%;
    	background-image: url("/img/bk.jpg");
    	background-position: center;
    	background-repeat: no-repeat;
    	background-size: cover;
    }
    
    h2{
    	padding: 50px;
    	background: #112233;
    	color: #f0f1f5;
    	font-family: sans-serif;
    	text-align: center;
    	font-size: 30pt;
    	letter-spacing: 15px;
    }
    
    .navagationDesktop{
    	background: #28496c;
    }
    
    nav{
    	height: 40px;
    	padding-left: 50px;
    	width: 100%;
    	display: block;
    	margin: 0 auto;
    	text-align: center;
    	text-transform: uppercase;
    }
    
    nav a{
    	display: block;
    	text-decoration: none;
    	font-family: sans-serif;
    	font-weight: bold;
    	font-size: 13pt;
    	color: #ffffff;
    }
    
    nav a:hover{
    	background: #28496c;
    	color: #ffffff;
    }
    
    nav ul{
    	list-style: none;
    }
    
    nav ul li{
    	float: left;
    	width: 140px;
    	height: 40px;
    	line-height: 40px;
    	background: #28496c;
    }
    
    nav ul ul li{
    	position: relative;
    	display: none;
    }
    
    nav ul ul ul{
    	display: none;
    }
    
    nav ul li:hover ul li{
    	border: 1px solid #ffffff;
    	display: block;
    	animation: navmenu 500ms forwards;
    }
    
    @keyframes navmenu{
    	0%{
    		opacity: 0;
    		top: 0px;
    	}
    	100%{
    		opacity: 1;
    		top: 0px;
    	}
    }
    
    nav ul ul li:hover ul{
    	display: block;
    	position: absolute;
    	width: 140px;
    	left: 140px;
    	top: 0px;
    }
    
    #content{
    	width: 920px;
    	min-height: 200px;
    	margin-top: 5px;
    	margin-bottom: 5px;
    	margin-left: auto;
    	margin-right: auto;
    }
    
    #content #left{
    	width: 600px;
    	padding: 10px;
    	color: #fff;
    	float: left;
    }
    
    #content #left p{
    	font-family: "Arial", sans-serif;
    }
    
    #content #right p{
    	font-family: "Arial", sans-serif;
    }
    
    
    #content #right{
    	width: 300px;
    	padding: 10px;
    	color: #fff;	
    	float: right;
    }
    
     #content #full{
    	width: 900px;
    	padding: 10px;
    }
    
    .clear{
    	clear: both;
    }
    
    footer{
    	border-top: 2px solid #28496c;
    	position: absolute;
    	bottom: 0px;
    	padding: 20px;
    	width: 100%;
    	text-align: center;
    	background: #112233;
    	color: #fff;
    	font-family: sans-serif;
    	font-weight: bold;
    	font-size: 11pt;
    	text-transform: uppercase;
    }
    
    
    .menuicon, .menucheck, .navagationMobile{
    	display: none;
    }
    
    @media screen and (max-width:1024px) {
    	h2{
    		padding: 30px;
    		text-align: right;
    		font-size: 20pt;
    		letter-spacing: 11px;
    	}
    
    	.navagationDesktop, .navagationMobile{
    		display: none;
    	}
    
    	.menucheck:checked ~ .navagationMobile{
    		display: block;
    	}
    	.menuicon{
    		display: block;
    		position: absolute;
    		top: 26px;
    		left: 10px;
    		color: #f0f1f5;
    		font-size: 20pt;
    		padding: 3px;
    		cursor: pointer;
    	}
    
    	.item input{
    		display: none;
    	}
    
    	.item label, .itemlast{
    		text-align: center;
    		display: block;
    		padding: 18px;
    		background-color: #28496c;
    		font-size: 12pt;
    		text-transform: uppercase;
    		color: #ffffff;
    		font-family: big john;
    		cursor: pointer;
    		border-bottom: solid 1px #eee;
    	}
    
    	.itemlast{
    		text-decoration: none;
    	}
    
    	.item label:hover, .itemlast:hover{
    		background: #223433;
    		color: #fef1f5;
    	}
    
    	.item ul{
    		max-height: 0;
    		overflow: hidden;
    		transition: all .2s;
    		text-align:center;
    	}
    
    	.item ul li a{
    		background: #DDD;
    		display: block;
    		text-decoration: none;
    		color: #333;
    		font-family: big john;
    		font-size: 11pt;
    		border-bottom: 2px solid #aaa;
    		padding: 10px;
    	}
    
    	.item ul li a:hover{
    		background: #eee;
    	}
    
    	.item input:checked ~ ul{
    		max-height: 400px;
    		transition: all .2s;
    	}
    
    	.wrapper #content{
    		width: 100%;
    	}
    
    	.wrapper #content #left{
    		text-align: center;
    		width: 100%;
    		margin-bottom: 10px;
    	}
    
    	.wrapper #content #left p{
    		font-family: "Arial", sans-serif;
    	}
    
    	.wrapper #content #right p{
    		font-family: "Arial", sans-serif;
    	}
    
    	.wrapper #content #right{
    		text-align: center;
    		width: 100%;
    		margin-bottom: 10px;
    	}
    
    	footer{
    		position: fixed;
    	 	bottom: 0px;
    	}
    
    }

  4. #4
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,532

    Re: Div Help Please

    I think it's your footer. You have it marked with an absolute location forcing it to the bottom, but when you do that, it overlays the column.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2017
    Posts
    3

    Re: Div Help Please

    is there any other way i can keep footer at the bottom and not overlay the column?

Posting Permissions

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



Click Here to Expand Forum to Full Width