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 1800 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

CSS Content Boxes

Thread title: CSS Content Boxes
Closed Thread  
Page 2 of 2 < 1 2
    Thread tools Search this thread Display Modes  
11-14-2005, 10:59 PM
#11
jared is offline jared
jared's Avatar
Status: Member
Join date: Sep 2005
Location: Victoria, TX
Expertise:
Software:
 
Posts: 172
iTrader: 0 / 0%
 

jared is on a distinguished road

Send a message via AIM to jared Send a message via Skype™ to jared

  Old

yeah thats not really going to work well. First of all you would see a navy border at the top of the div above the image. Also the header txt wouldnt be aligned properly. I'll see if I can come up with something when I get some time.

11-15-2005, 04:39 AM
#12
bcd is offline bcd
bcd's Avatar
Status: Junior Member
Join date: Oct 2005
Location: Cali
Expertise:
Software:
 
Posts: 96
iTrader: 0 / 0%
 

bcd is on a distinguished road

Send a message via AIM to bcd Send a message via MSN to bcd Send a message via Yahoo to bcd

  Old

A challenge to all designers out there: create a box like in the picture without nested divs or other messy code

11-15-2005, 03:05 PM
#13
Jhin is offline Jhin
Jhin's Avatar
Status: Member
Join date: Nov 2005
Location: Ontario, Canada
Expertise:
Software:
 
Posts: 303
iTrader: 0 / 0%
 

Jhin is on a distinguished road

Send a message via ICQ to Jhin Send a message via AIM to Jhin Send a message via MSN to Jhin Send a message via Yahoo to Jhin

  Old

Here's my go at it

HTML:

Code:
<div id="News">
<img src="notebook.jpg" align="left"><h1>Test</h1>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
</div>
CSS:
Code:
#News{
	background-color: #fff;
	color: #036;
	width: 200px;
	height: 200px; 
}

#News img{
	margin-top: -8px;
}

#News H1{
	margin-top:8px;
	margin-bottom: -20px;
	padding-left: 33px;
	background-color: #036;
	color:#FFF;
	font-size:18px;
	font-family:Arial, Helvetica, sans-serif;
	border-bottom: 1px solid #036;
}
#News P{
	padding: 5px;
	border: 1px solid #036;
}


Edit Added Paragraph padding, oh and I only test in Firefox...don't know what it looks like in IE.

Attached Images
File Type: jpg notebook.jpg (3.3 KB, 19 views)

11-20-2005, 11:23 PM
#14
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

I never get to tell you: good job

Closed Thread  
Page 2 of 2 < 1 2


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