TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 12-08-2007, 06:56 PM   #1 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default CSS problem

Hi!
I've recently made a content box in photoshop, and since I've got nearly no knowledge in CSS, I would love to know how I would code this box in CSS.

HTML Code:
<div class="contentbox">

	<div class="head">
		<div id="title">New style</div>
	</div>
	
</div>
I want that, to generate this:



HTML Code:
	<div class="spacer"></div>


HTML Code:
	<div class="content">
		
		<div class="top">
		
			<div id="title">New style</div>
			<div id="admin">Edit   Delete</div>
			<div id="line"></div>
			<div id="postdetails">Posted 18:28 the 8th of December 2007 by Tanax</div>
			
		</div>
		
		<div class="content">
		
			<div id="post">Been working on a new style for the website today, and I think that I've finally came up with a nice design. Please tell me what you think of it!</div>
			
		</div>
		
		<div class="bottom">
			
			<div id="edited">Updated 18:39 the 8th of December by Friiidiiish</div>
			<div id="reason">Spelling mistake :P</div>
			<div id="line"></div>
			<div id="comments">Comments (13)</div>
			
		</div>


HTML Code:
	<div class="spacer"></div>
	
	<div class="footer"></div>




And so, the whole code would be:
HTML Code:
<div class="contentbox">

	<div class="header">
		<div id="title">New style</div>
	</div>
	
	<div class="spacer"></div>
	
	<div class="content">
		
		<div class="top">
		
			<div id="title">New style</div>
			<div id="admin">Edit   Delete</div>
			<div id="line"></div>
			<div id="postdetails">Posted 18:28 the 8th of December 2007 by Tanax</div>
			
		</div>
		
		<div class="content">
		
			<div id="post">Been working on a new style for the website today, and I think that I've finally came up with a nice design. Please tell me what you think of it!</div>
			
		</div>
		
		<div class="bottom">
			
			<div id="edited">Updated 18:39 the 8th of December by Friiidiiish</div>
			<div id="reason">Spelling mistake :P</div>
			<div id="line"></div>
			<div id="comments">Comments (13)</div>
			
		</div>
		
	</div>
	
	<div class="spacer"></div>
	
	<div class="footer"></div>
	
</div>


That's the structure of the HTML that I've thought out.. but I have no idea how to actually code it in CSS so the box expands if you write more text, etc etc..


Anyone have any ideas?

Oh, and I know that the quality is really bad.. it wasn't intentionally, but now after I've uploaded them, I realized that it was a kind of good way to prevent ppl from stealing it xD

This is not sliced yet btw..
Tanax is offline  
Reply With Quote
 



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

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 03:50 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design