473,796 Members | 2,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

More Complex Vertical Stretch

1 New Member
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:800 px;" - 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 3123
gutierrezalex
1 New Member
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
30914
by: abracad | last post by:
Hi Is it possible to vertically align an image in the middle of a DIV of fixed height?
9
2510
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 have seen it done by repeat-y on a gif the same color, but I wondered if CSS had some feature that was actually intended for this. The other thing that would be nice to do would be to stretch the whole box to the window height minus just a...
3
4423
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%; min-height:100%; } body{ vertical-align:middle;
6
9500
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 there is, or what screen resolution the user is viewing the site with. If the content won't fit on one screen, I would obviously also want the layout to stretch to accomodate the text. However, I can't seem to figure out a way to get it to do what I...
2
15569
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 display of table, the first inner div has display of table-cell and the inner-most div has the text. The outer div has a set width and height. So here's the problem: Without the inner divs having a width and height set, the overflow:hidden doesn't...
8
3554
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: body { font-family: Trebuchet MS, Arial; cursor : default; background:#000000 url("Images/long-template.jpg"); background-repeat:no-repeat; background-position: center; background-attachment:scroll; height: 1228px;
3
3970
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 for such a job if it's possible. Thanks
40
5506
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: http://htmlhelp.com/reference/css/text/vertical-align.html
4
5748
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 answer: How do I stretch the static image? The Style property builder for a table cell lets me specify the background image location, tiling, scrolling, and position. But I can't find any obvious way to tell it to stretch the image
0
9524
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10217
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6785
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5568
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
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 we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.