Wrox Programmer Forums
|
BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3
This is the forum to discuss the Wrox book Beginning CSS: Cascading Style Sheets for Web Design by Richard York; ISBN: 9780764576423
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 15th, 2006, 02:43 PM
Authorized User
 
Join Date: Jan 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default Stacking order

Hi, I am having problems I think with CSS stacking order for my div elements. I am in need of a quick fix or suggestion how to improve my website at http://tektown.net:86 so that I can place content in the main white space area of the site using div. As it is now when I use div to say create another menu, this new div will be stacked under my sidebar div. I want this div to be placed somewhere in the main white space of the website. How can I achieve this? Also when I am finished could I template out this main page and have new pages that i create be based off of it like you can with tables?

 
Old February 23rd, 2006, 05:17 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

I'm having a little difficulty in seeing what your goal is. Any way you could give me a photoshop'ed picture of where you're trying to go? That'd at least give me a basis for comparison, and allow me to better help you get there.

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
 
Old February 26th, 2006, 01:08 PM
Authorized User
 
Join Date: Jan 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for replying to my post. I have got passed my previous question and have my site layed out the way I want. My problem now is that if I add content to my divs the content seems to push the div's out of alignment with one another. I have pasted my CSS code and body code below. For example If i add a large amount of text to my <div ="content"> </content> section my page becomes all out of wack especially on a restore of the window to a smaller size. I hope by looking at my code someone can give me some insight how to fix this so that my content stays within the div it was intended to even on a window restore. Any ideas? Thanks I am really stuck here
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<style>
html {height:100%;}
body {
margin:0;
padding:0;
height:100%;
font-family:Papyrus, Rockwell, Poor Richard, Times New Roman, serif;
}
#wrap {
position:relative;
height:100%;
min-height:100%;
}
* html #wrap {height:100%}
#clearfooter {
clear:both;
height:20px;
overflow:hidden;
}
#footer {
position:absolute;
bottom:0 0 0 0;
height:20px;
background-color: #333333;
width:100%;
color:#FF00FF;
text-align:center;
}
#left {
background-color:#996600;
float:left;
min-height:100%;
height:100%;
width:200px;
text-align:center;
}
#main {
position:relative;
margin-left:200px;
height:100%;
min-height:100%;
}
#right {
background-color:#00CC00;
float:right;
text-align:center;
width:200px;
height:100%;
min-height:100%;
}
#content {
background-color:#009966;
padding:0;
margin-right:200px;
text-align:left;
height:100%;
min-height:100%;
}
.menu {
Position:relative;
width:100%;
height:30px;
background-color:#006633;
}
* html #right,
* html #content,
* html #main {
height:100%;
min-height:100%;
}
</style>

<body>


<body >
<div id="wrap">
  <div id="header">Header</div>
  <div id="left">left</div>
  <div id="main">
    <div id="right">right</div>
    <div id="content">
      <div class="menu">Menu</div>
      Currently viewing at 1024X768
      Content (If i place a large amount of text here the page does not adjust to the content and my divs become all unorganized.If you do a restore of this page (suqare button next to minimize button in title bar) this content section is placed below my left and right navigation div's. Also the footer of the page is placed outside of the left navigation div rather than directly below it.
      This also looks very bad in firefox.
kJJhJdljsdjasdhahsdjajdjasdasdjhskhdkjasdddd
dddddddddddddddddddddddddddddddddddddddddddddddddd dd
dddddddddddddddddddddddddddddddddddddddddddddddddd dddddddd

  </div>
  <div id="clearfooter">
    <div id="footer">footer</div>
  </div>
</div>
</body>

</html>











Similar Threads
Thread Thread Starter Forum Replies Last Post
ORDER BY Help U.N.C.L.E. SQL Server 2000 13 September 2nd, 2008 09:07 PM
Resetting DIVs based on stacking order keithc BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 6th, 2006 03:32 PM
Stacking Chart with Rolling Totals and Trend Line smartgir Excel VBA 0 March 9th, 2004 06:19 PM
stacking order with an iframe andyf HTML Code Clinic 1 November 27th, 2003 07:54 AM
document node order vs sort node order. ladyslipper98201 XSLT 2 June 5th, 2003 11:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.