473,463 Members | 1,494 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

More Complex Vertical Stretch

I have searched for "vertical stretch, align, etc." and have tried (and failed) with all of the solutions to stretch the "#nav vertical" div so that it streches to the height of the page. As you can see I simply set it to "height:800px;" - which looks bad on really short pages (http://www.coloradopedia.com/~newpor...Operation.html ) or really long ones (http://www.coloradopedia.com/~newpor...Directors.html

Please help - on deadline - and been looking at the code so long "I can't see the forest for the"...well you get the idea.

Here is the link to the html page:
http://www.coloradopedia.com/~newports/index.html

And here is the CSS stylesheet:

Expand|Select|Wrap|Line Numbers
  1. body,td,th {
  2.     font-family: Tahoma, Verdana, Arial;
  3.     font-size: 12px;
  4.     line-height:150%;
  5.     color: #333333;
  6. }
  7. body {
  8.     background-color: #FFFFFF;
  9.     background-image: url('LogoBack.jpg');
  10.     height:100%;
  11. }
  12. a:link {
  13.     color: #ffffff;
  14.     text-decoration: none;
  15. }
  16. a:visited {
  17.     text-decoration: none;
  18.     color: #ffffff;
  19. }
  20. a:hover {
  21.     text-decoration: underline;
  22.     color: #ff3333;
  23. }
  24. a:active {
  25.     text-decoration: none;
  26.     color: #006699;
  27. }
  28. h1 {
  29.     font-family: Arial, Verdana, Tahona;
  30.     font-size:18px;
  31.     letter-spacing: 3px;
  32.     text-align:center;
  33.     font-weight:bold;
  34.     color: #006699;
  35. }
  36. #main_container {
  37.     float:left
  38.     margin:auto;
  39.     width:800px;
  40.     border-top:0px solid #CCCCCC;
  41. }
  42. #header {
  43.     height:160px;
  44. }
  45. #header_left {
  46.     float:left;
  47.     width:160px;
  48.     height:160px;
  49. }
  50. #header_right {
  51.     float:right;
  52.     width:640px;
  53.     height:160px;
  54.     background:#EAEAEA;
  55. }
  56. #nav_horizontal {
  57.     text-align:right;
  58.     letter-spacing:1px;
  59.     padding:5px 5px 5px 0px;
  60.     border-top:1px solid #CCCCCC;
  61.     border-bottom:1px solid #CCCCCC;
  62.   background:#990000;
  63. }
  64. #nav_horizontal a:link, #nav_horizontal a:visited, #nav_horizontal a:active {
  65.     font-size:12px;
  66.     font-weight:bold;
  67. }
  68. #nav_vertical {
  69.     float:left;
  70.     width:180px;
  71.     background:#990000;
  72.     height:800px;
  73. }
  74. #nav_vertical a:link, #nav_vertical a:visited, #nav_vertical a:active {
  75.     display:block;
  76.     font-size:12px;
  77.     font-weight:bold;
  78.     padding:0px 0px 0px 0px;
  79. }
  80. #content {
  81.     float:right;
  82.     width:600px;
  83.     padding:3px;
  84. }
  85. #content_box1 {
  86.     border-right:1px solid #333333;
  87.     border-bottom:1px solid #333333;
  88.     padding:5px;
  89.     float:left;
  90.     width:280px;
  91.     height:239px;
  92. }
  93. #content_box2 {
  94.     border-bottom:1px solid #333333;
  95.     padding:5px;
  96.     float:left;
  97.     width:280px;
  98.     height:239px;
  99. }
  100. #content_box3 {
  101.     border-right:1px solid #333333;
  102.     padding:5px;
  103.     float:left;
  104.     width:280px;
  105.     height:240px;
  106. }
  107. #content_box4 {
  108.     padding:5px;
  109.     float:left;
  110.     width:280px;
  111.     height:240px;
  112. }
  113. #footer {
  114.     clear:both;
  115.     font-size:12px;
  116.     text-align:center;
  117.     padding:10px;
  118.     border-top:3px double #999999;
  119. }
Jul 25 '07 #1
1 3101
View the source from http://alexandergutierrez.info
Aug 31 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: abracad | last post by:
Hi Is it possible to vertically align an image in the middle of a DIV of fixed height?
9
by: Wes Groleau | last post by:
http://www.northwestallentrails.org/testing.shtml http://www.northwestallentrails.org/newstyles.css Is there a simple way to make the nav and content boxes stretch down and touch the footer? I...
3
by: acunnon | last post by:
I am trying to put together an login page my problem is getting the three items aligned to the middle verticaly without specifing a height to anything on the page. CSS html{ height:100%;...
6
by: yuiness | last post by:
I have this CSS layout that I'd like to use for a personal site: I want the layout to stretch all the way from the top of the page to the bottom of the page regardless of how little content...
2
by: esteuart | last post by:
I need to get the right combination for a div to clip any text inside and allow vertical alignment. I only have this problem in FireFox. I have 3 divs nested within each other. The outer div has...
8
by: ayamopamo | last post by:
Hi- I am trying to center a web page. It seems like this should be very simple to do, but apparently it isn't my day. I have successfully centered the background by calling it in the css body tag:...
3
by: Harris Kosmidhs | last post by:
Hello. I see there is a W3C CSS2 specification for font-stretch property. I also see that no browser supports it. Why is that? And is there a work around for this? I don't want to use an image...
40
by: maya | last post by:
hi, how do I get text to vertical-align inside a div? http://www.mayacove.com/misc/home.html vertical-align should work, according to this:...
4
by: Bob Altman | last post by:
Hi all, I posted an earlier question to the microsoft.public.inetserver.asp.general newsgroup asking how to set the background of a client-side table cell to a gradient, and I received this...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.