1
1995 Cobra
Hello all, CSS new guy here. I've been adapting well to this, but have
hit a snag. My pages look pretty good when the window is fully
expanded, but if you begin to collapse it or have it sized small (the
browser window), all the content starts to "stack" itself - making the
page look aweful. For instance, I float a div to the left and then have
another div that should display to the right of it. Full window, looks
great. Start to collapse the window and it puts the div that should be
to the right below the height floated div (essentially moving it out of
viewable space and creating a void to the right of what is viewable).
Here is an example of the code i'm using... any thoughts:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>BOUGHTON ARCHITECTS, INC. | Creativity to Build On</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<style type="text/css">
body {
font-family: Arial, Helvetica, sans-serif;
color: white;
font-size: 9px;
background-color: black;}
body a:link {
color: white;
text-decoration: none;}
body a:hover {
color: #FFCC66;
text-decoration: none;}
body a:visited {
color: white;
text-decoration: none;}
..holder {
margin: 0px 0px 0px 225px;
padding: 0px;
text-align: left;
width: 100%;}
#header {
background-color: #FFCC66;
margin: 0px;
padding: 0px;}
#links {
margin: 0px;
background-color: black;
padding-left: 5px;
height: 25px;}
..lineheight {
line-height: 250%;}
iframe {
background-color: #336699;
padding: 0px;
width: 675px;
height: 490px;
float: left;
border: 0px;
frameborder: 0;
scrolling: auto;}
#biglogo {
margin: 0px 0px 0px 675px;
height: 490px;
background-color: #FFCC66;
background-image: url(images/index/background_logo.jpg);
background-repeat: no-repeat;
background-position: top left;
border-left: 1px solid black;
padding: 0px;}
#flash {
float: left;
margin: 0px;
padding: 0px;
border: 0px;}
body p {
text-align: center;}
..colortext {
color: #FFCC66;}
/* Hide from IE5-mac. Only IE-win sees this. \*/
* html #holder {
position: relative;
left: -3px;
}
* html #links {
position: relative;
top: -3px;}
* html #biglogo {
position: relative;
left: -3px;}
/* End hide from IE5/mac */
</style>
<script language="javascript">
function show_hide_text(divID){
var divArea = document.getElementById(divID)
var divAreaImg = document.getElementById(divID+"_img")
var divAreaVisible = divArea.style.display != "none"
if(divAreaVisible){
divArea.style.display = "none"
divAreaImg.innerHTML = "[+]"
}else{
divArea.style.display = ""
divAreaImg.innerHTML = "[−]"
}
}
</script>
</head>
<body>
<div id="flash">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="225" height="600">
<param name="movie" value="ba_nav.swf">
<param name="quality" value="high">
<embed src="ba_nav.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="225" height="600"></embed>
</object>
</div>
<div class="holder">
<div id="header">
<a href="home.htm" target="container">
<img src="images/index/top_text_2.jpg" alt="Boughton Architects,
Inc." border="0"></a>
</div>
</div>
<div class="holder">
<div id="links">
<span class="lineheight">
<span class="colortext">PROJECTS (</span>COMMERCIAL
<a href="javascript:void(0);"
onClick="show_hide_text('info_3');"><span
id="info_3_img">[+]</span></a>
<span id="info_3" style="display:none;"><span class="colortext">|
</span>
<a href="view_list.asp?tNo=1001" target="container">Office</a> -
<a href="view_list.asp?tNo=1002" target="container">Medical</a> -
<a href="view_list.asp?tNo=1003"
target="container">Hospitality</a> -
<a href="view_list.asp?tNo=1004" target="container">Retail</a> -
<a href="view_list.asp?tNo=1005" target="container">Financial</a>
-
<a href="view_list.asp?tNo=1010" target="container">Religious</a>
<span class="colortext"> |</span>
</span>
- RESIDENTIAL
<a href="javascript:void(0);" onClick="show_hide_text('info_4');"
</span>
<a href="view_list.asp?tNo=1006" target="container">Single
Family</a> -
<a href="view_list.asp?tNo=1007" target="container">Multi
Family</a>
<span class="colortext"> |</span>
</span>
- <a href="view_list.asp?tNo=1008" target="container">OTHER</a> -
<a href="view_list.asp?tNo=1009" target="container">FUTURE</a>
<span class="colortext">)</span> -
<a href="container/about.htm" target="container">ABOUT US</a> -
<a href="contact.htm" target="container">CONTACT</a> -
<a href="container/employment.htm"
target="container">EMPLOYMENT</a>
</span>
</div>
</div>
<div class="holder">
<iframe src="home.htm" name="container"></iframe>
<div id="biglogo">
</div>
</div>
</body>
</html>
hit a snag. My pages look pretty good when the window is fully
expanded, but if you begin to collapse it or have it sized small (the
browser window), all the content starts to "stack" itself - making the
page look aweful. For instance, I float a div to the left and then have
another div that should display to the right of it. Full window, looks
great. Start to collapse the window and it puts the div that should be
to the right below the height floated div (essentially moving it out of
viewable space and creating a void to the right of what is viewable).
Here is an example of the code i'm using... any thoughts:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>BOUGHTON ARCHITECTS, INC. | Creativity to Build On</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<style type="text/css">
body {
font-family: Arial, Helvetica, sans-serif;
color: white;
font-size: 9px;
background-color: black;}
body a:link {
color: white;
text-decoration: none;}
body a:hover {
color: #FFCC66;
text-decoration: none;}
body a:visited {
color: white;
text-decoration: none;}
..holder {
margin: 0px 0px 0px 225px;
padding: 0px;
text-align: left;
width: 100%;}
#header {
background-color: #FFCC66;
margin: 0px;
padding: 0px;}
#links {
margin: 0px;
background-color: black;
padding-left: 5px;
height: 25px;}
..lineheight {
line-height: 250%;}
iframe {
background-color: #336699;
padding: 0px;
width: 675px;
height: 490px;
float: left;
border: 0px;
frameborder: 0;
scrolling: auto;}
#biglogo {
margin: 0px 0px 0px 675px;
height: 490px;
background-color: #FFCC66;
background-image: url(images/index/background_logo.jpg);
background-repeat: no-repeat;
background-position: top left;
border-left: 1px solid black;
padding: 0px;}
#flash {
float: left;
margin: 0px;
padding: 0px;
border: 0px;}
body p {
text-align: center;}
..colortext {
color: #FFCC66;}
/* Hide from IE5-mac. Only IE-win sees this. \*/
* html #holder {
position: relative;
left: -3px;
}
* html #links {
position: relative;
top: -3px;}
* html #biglogo {
position: relative;
left: -3px;}
/* End hide from IE5/mac */
</style>
<script language="javascript">
function show_hide_text(divID){
var divArea = document.getElementById(divID)
var divAreaImg = document.getElementById(divID+"_img")
var divAreaVisible = divArea.style.display != "none"
if(divAreaVisible){
divArea.style.display = "none"
divAreaImg.innerHTML = "[+]"
}else{
divArea.style.display = ""
divAreaImg.innerHTML = "[−]"
}
}
</script>
</head>
<body>
<div id="flash">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="225" height="600">
<param name="movie" value="ba_nav.swf">
<param name="quality" value="high">
<embed src="ba_nav.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="225" height="600"></embed>
</object>
</div>
<div class="holder">
<div id="header">
<a href="home.htm" target="container">
<img src="images/index/top_text_2.jpg" alt="Boughton Architects,
Inc." border="0"></a>
</div>
</div>
<div class="holder">
<div id="links">
<span class="lineheight">
<span class="colortext">PROJECTS (</span>COMMERCIAL
<a href="javascript:void(0);"
onClick="show_hide_text('info_3');"><span
id="info_3_img">[+]</span></a>
<span id="info_3" style="display:none;"><span class="colortext">|
</span>
<a href="view_list.asp?tNo=1001" target="container">Office</a> -
<a href="view_list.asp?tNo=1002" target="container">Medical</a> -
<a href="view_list.asp?tNo=1003"
target="container">Hospitality</a> -
<a href="view_list.asp?tNo=1004" target="container">Retail</a> -
<a href="view_list.asp?tNo=1005" target="container">Financial</a>
-
<a href="view_list.asp?tNo=1010" target="container">Religious</a>
<span class="colortext"> |</span>
</span>
- RESIDENTIAL
<a href="javascript:void(0);" onClick="show_hide_text('info_4');"
<span id="info_4" style="display:none;"><span class="colortext">|<span id="info_4_img">[+]</span></a>
</span>
<a href="view_list.asp?tNo=1006" target="container">Single
Family</a> -
<a href="view_list.asp?tNo=1007" target="container">Multi
Family</a>
<span class="colortext"> |</span>
</span>
- <a href="view_list.asp?tNo=1008" target="container">OTHER</a> -
<a href="view_list.asp?tNo=1009" target="container">FUTURE</a>
<span class="colortext">)</span> -
<a href="container/about.htm" target="container">ABOUT US</a> -
<a href="contact.htm" target="container">CONTACT</a> -
<a href="container/employment.htm"
target="container">EMPLOYMENT</a>
</span>
</div>
</div>
<div class="holder">
<iframe src="home.htm" name="container"></iframe>
<div id="biglogo">
</div>
</div>
</body>
</html>