CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

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 Dev Shed Forums Sponsor:
  #1  
Old March 21st, 2004, 07:23 PM
depiction depiction is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 25 depiction User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 25 m 14 sec
Reputation Power: 0
Exclamation CSS Height Problem

I'm beginning to convert my site from HTML tables to CSS divs. I am having problems with two of my image borders, both on the left and right side of my layout. Neither of the borders stretch to the bottom of the page. The left border stretches to the height of the content in the current DIV. The right border doesn't appear at all. How do I make to borders stretch to the bottom of the page?

CSS version:
http://www.depiction.net/layoutsliced.php

HTML version I'm trying to match:
http://www.depiction.net/?id=tutorials

Reply With Quote
  #2  
Old March 21st, 2004, 11:43 PM
lucesei's Avatar
lucesei lucesei is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 111 lucesei User rank is Private First Class (20 - 50 Reputation Level)lucesei User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 11 h 33 m 27 sec
Reputation Power: 5
For starters, the reason why the right border doesn't show at all, is because you've only defined it as an id in the head section, but forgot to use the id in the body section. In other words, you've defined the border but haven't used it.
In general, the construction of a css box with borders, corners etc.. is an operation that is slightly more tricky than simply placing an image here, another one there...
The best tutorial I've found on the subject is here:

http://www.sovavsiti.cz/css/corners.html

Study it carefully and you'll master the skill.

Basically, the construction is as follows:

Code:
<div -- define the TOP border>
  <div -- define the RIGHT border>
    <div -- define the BOTTOM border>
      <div -- define the LEFT border>
        <div -- define the TOP LEFT corner or top image>
          <div -- define the TOP RIGHT corner>
            <div -- define the BOTTOM RIGHT corner>
              <div -- define the BOTTOM LEFT corner or bottom image>
<div -- place the content here, in more than 1 div if needed>
                </div>
              </div>
            </div>
          </div>
         </div>
        </div>
      </div>
     </div>
    </div>

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS Height Problem


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 4 hosted by Hostway
Stay green...Green IT