Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1941 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

CSS Content Boxes

Thread title: CSS Content Boxes
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
11-08-2005, 10:33 PM
#1
Yang is offline Yang
Yang's Avatar
Status: Member
Join date: Jun 2005
Location:
Expertise:
Software:
 
Posts: 460
iTrader: 0 / 0%
 

Yang is on a distinguished road

Send a message via Yahoo to Yang

  Old  CSS Content Boxes

I'm just wondering if I'm doing this correctly. You know those content boxes on www.yahoo.com 's Weather/In The News/Marketplace. It has a header (with purple background) and the content area.

This is how i do it with CSS

CSS Code:

Code:
.header { 
width: 100px; 
background-color: purple;
padding: 5..pxem;
margin: 0;
}

.content {
width: 100px;
padding: 5px;
border: 1px solid purple;
}
HTML CODE:

Code:
<body>

<div class="header">In Th News</div>
<div class="content">Content flows here</div>

</body>
It seems annoying to insert both the header and content div's everytime you want a new content box. Is there an easier way?

     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed