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 04-09-2008, 03:30 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 Some css problems..

Hey!

I have this:
Untitled Document


HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>

<link href="includes/gfx/poems.css" rel="stylesheet" type="text/css" />

</head>
<body>
<div id="content">
	<div class="poemContent">
		
		<div class="poemContentPoem">
			GGGGGGGGGGGGGGGGGGGGGGGGGGGG<br />

GGGGGGGGGGGGGGGGGGGGGGGGGGGG<br />
GGGGGGGGGGGGGGGGGGGGGGGGGGGG<br />
GGGGGGGGGGGGGGGGGGGGGGGGGGGG<br />
GGGGGGGGGGGGGGGGGGGGGGGGGGGG<br />
GGGGGGGGGGGGGGGGGGGGGGGGGGGG<br />
GGGGGGGGGGGGGGGGGGGGGGGGGGGG<br />
GGGGGGGGGGGGGGGGGGGGGGGGGGGG<br />
GGGGGGGGGGGGGGGGGGGGGGGGGGGG<br />
GGGGGGGGGGGGGGGGGGGGGGGGGGGG<br />

GGGGGGGGGGGGGGGGGGGGGGGGGGGG<br />
		</div>
		
		<div class="poemContentTitle">
			<h1>Best mom</h1>
			<strong>To : Mom</strong>
		</div>
	
		<div class="poemContentDesc">
			<h2>Description:</h2>

			Wrote this just now
		</div>
	
</div>
</body>
</html>

And as you see, the inner right box is overlapping the outer big box, and I don't want that. I want the outer to expand together with the inner ones..

Here's the css:
Code:
.poemTitle {
	
	text-align: center;
	border-bottom: 1px solid #000;
	font-size: 20px;
	font-weight: bold;
	
}

.poemDesc {
	
	text-align: center;
	font-weight: italic;
	padding: 20px 10px;
	
}

.poemInfo {
	
	text-align: center;
	border-top: 1px solid #000;
	
}

.poem {
	
	border: 1px solid #000;
	width: 230px;
	float: left;
	margin-right: 8px;
	margin-bottom: 15px;
	
}

.poemContent {
	
	border: 1px solid #000;
	padding: 10px;
	
}

.poemContentPoem {
	
	float: right;
	text-align: left;
	width: 660px;
	border: 1px solid #000;
	padding-top: 10px;
	padding-bottom: 30px;
	padding-left: 10px;
	padding-right: 10px;
	text-align: center;
	
}

.poemContentTitle {
	
	width: 450px;
	margin: 0;
	padding: 0;
	text-align: center;
	border: 1px solid #000;
	padding-bottom: 10px;
	
}

.poemContentDesc {
	
	width: 450px;
	border-right: 1px solid #000;
	border-bottom: 1px solid #000;
	border-left: 1px solid #000;
	text-align: center;
	padding-bottom: 20px;
	
}

.poemContentDesc h2 {
	
	padding-top: 5px;
	text-decoration: underline;
	margin-top: 0;
	font-size: 15px;
	text-align: center;
	
}
THanks in advance!
__________________

Last edited by Tanax : 04-10-2008 at 01:01 PM. Reason: code added
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 06:53 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