Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 27th, 2005, 09:34 AM
deansaddigh's Avatar
deansaddigh deansaddigh is offline
Constant Learner
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 487 deansaddigh User rank is Private First Class (20 - 50 Reputation Level)deansaddigh User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 7 h 14 m 17 sec
Reputation Power: 4
Send a message via MSN to deansaddigh
css design layout.

hi all, this is my page.
http://www.languageschoolsuk.com/we.../postioning.asp
can you see the left hand navigation box, well the box underneath iit in yellow is, well its meant to stay underneath the navigation box, but as the naviagtion box grows its passes through the yellow box, how can i get the yellow box to stay underneath it even when it grows.

heres my css code

Code:

/* attempting site desing with css*/




#container
{
position: relative;
border-color: grey;
border: 2px solid;
background-color: white;
margin: 0 auto;
	width: 750px;
	height: 600px;
	
}



a {
	color:#09c;
	font-size:11px;
	text-decoration:none;
	font-weight:600;
	font-family:verdana, arial, helvetica, sans-serif;
	}
a:link {color:#09c;}
a:visited {color:#07a;}
a:hover {background-color:#eee;}


	

#banner
{

border-bottom: 1px solid #333;

}

/* this is a descendant selector - which will select only <h1> 
elements within a <div> styled with id="banner".*/
#content h1
{

color:#09c;
	font-size:11px;
	text-decoration:none;
	font-weight:600;
	font-family:verdana, arial, helvetica, sans-serif;
}

#nav
{

position: absolute;
float: left;
width: 130px;
margin-top: 10px;
margin-left: 10px;
border: 1px solid;
border-color: grey;
background-color: orange;
overflow: hidden;

}

#info
{

position: absolute;
width: 130px;
border: 1px solid;
border-color: grey;
background-color: yellow;
float: left;
margin-top: 200px;
margin-left: 10px;
overflow: hidden;
}

#content
{
position: absolute;
float: right;
width: 550px;
margin-top: 10px;
margin-left: 150px;
border: 2px dashed;
background-color:orange;
height: 400px;
overflow: auto;

}

#footer
{

background-color: orange;
text-align: left;
border-top: 1px solid #333;
position: absolute;
bottom: 0;
width: 750px;
}





and my asp page.

Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- ****************link to style css sheet************************--> 
	<link rel="stylesheet" type="text/css" href="css/newlayout.css">
<!-- **************************************************    *************--> 
</head>

<body>
<!--***********************CSS LAYOUT***************************-->

<div id="container"> 
  <div id="banner"> 
    <!-- #include file="mumsheader.htm"-->
  </div>
  <div id="nav"> 
    <li><strong><font color="#FFFF00">Navigation</font></strong> <a href="http://www.google.co.uk">Cowboy 
      Hats</a> <a href="http://www.google.co.uk">Cowboy Boots</a> <a href="http://www.google.co.uk">Cowboy 
      Shirts</a> <a href="http://www.google.co.uk">Cowboy Accesories</a> 
	  --------------------------
	  Comming soon (knifes)
	  werfweweeeeeeeeeeeweeeeeeeeeeeeeeeeeeeeeeeeeeeeeee    eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee    eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee<p>rtssssssssssss</p>
	  <p>weFRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR    RRRRRRRRRRRRRRRRRRRRRRRRRRRRRREG</p></li>
  </div>
  <div id="info">this is well all the extra content will go!
  dddddddddddddddddddddddddddfgggggggggggggggggggggg    ggggggggggggggggggggggggggggggggggggggggggg </div>
    <div id="content"> 
      <div align="center"><a href="http://www.google.co.uk">Cowboys&Indians.co.uk 
        </a> </div>
      <p align="center">
      <p>Welcome to cowboys and indians, Please feel free to take a look around!</p>
      <p>we have alot of stock that isnt on this website so please feel free to 
        contact us</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p align="center">&nbsp;</p>
      <p>&nbsp; </p>
      <p>&nbsp;</p>
    </div>
    <div id="footer"> Copyright!</div>
  </div>
   
  
</div>
</body>
</html>

__________________
__________________
dsaddigh

Reply With Quote
  #2  
Old September 27th, 2005, 03:27 PM
werD's Avatar
werD werD is offline
Certified Abuser
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jan 2005
Location: Line 73 ---^
Posts: 1,046 werD User rank is First Lieutenant (10000 - 20000 Reputation Level)werD User rank is First Lieutenant (10000 - 20000 Reputation Level)werD User rank is First Lieutenant (10000 - 20000 Reputation Level)werD User rank is First Lieutenant (10000 - 20000 Reputation Level)werD User rank is First Lieutenant (10000 - 20000 Reputation Level)werD User rank is First Lieutenant (10000 - 20000 Reputation Level)werD User rank is First Lieutenant (10000 - 20000 Reputation Level)werD User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 20652 Folding Title: Starter FolderFolding Points: 20652 Folding Title: Starter Folder
Time spent in forums: 1 Week 4 Days 20 h 37 m 12 sec
Reputation Power: 127
change your div id="info" to span class="info", and change #info to .info and also remove this from .info
Code:
margin-top: 200px;

Your problem lies in your absolute positioning of the div within your css. So by eliminating the info div you use the attributes given to it by the above element ie. if you're nav gets taller the info box moves down to comply.
Comments on this post
deansaddigh agrees: thank you!
__________________
werD, MCSD .Net
<% ASP,.NET App Development %>

Really Help People with Real Diseases... And Get a Cool Blue Flower!

If a post has helped you please use the scales... we all need bigger heads

Last edited by werD : September 27th, 2005 at 03:30 PM.

Reply With Quote
  #3  
Old September 28th, 2005, 03:43 AM
deansaddigh's Avatar
deansaddigh deansaddigh is offline
Constant Learner
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 487 deansaddigh User rank is Private First Class (20 - 50 Reputation Level)deansaddigh User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 7 h 14 m 17 sec
Reputation Power: 4
Send a message via MSN to deansaddigh
wow, as it im not going to bow to you!

cheers for your help bud, much appreciated, im going to do this right now ill tell you if it works. thanks again!

Reply With Quote
  #4  
Old September 28th, 2005, 04:27 AM
deansaddigh's Avatar
deansaddigh deansaddigh is offline
Constant Learner
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 487 deansaddigh User rank is Private First Class (20 - 50 Reputation Level)deansaddigh User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 7 h 14 m 17 sec
Reputation Power: 4
Send a message via MSN to deansaddigh
i have done what you said but i tihink this is wrong?

heres my code for the
the span part this must be wrong because is wrong because it hasnt changed colour. whats wrong should i not be closing it with </span> i didnt know how else to do it.

Code:
<span class="info">this is well all the extra content will go!
  dddddddddddddddddddddddddddfgggggggggggggggggggggg  ggggggggggggggggggggggggggggggggggggggggggg </span>

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > css design layout.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway