OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

help please

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets and Accessibility >> help please
Page: [1]
 
Mango Himself

 

Posts: 2172
Joined: 11/28/2005
Status: offline

 
help please - 8/8/2008 15:17:41   
Hi guys,

a simple one for you, a hard one for me.

How can I define for text to be the exact width of the heading? I would like for the text to stay under the heading even when viewed in different resolutions. I am attaching my CSS code and a picture of what I mean. Thanks for the help.

CSS code

picture of what I want

_____________________________

Associate Smutter
_____________________
Some people think luxury is the opposite of poverty. It is not. It is the opposite of vulgarity.
d a v e

 

Posts: 4348
Joined: 7/24/2002
From: England (but live in Finland now)
Status: offline

 
RE: help please - 8/8/2008 15:56:12   
pop it all in a div with a width equal to that of the image say 800px or whatever it is

_____________________________

David Prescott
Gekko web design

(in reply to Mango Himself)
Mango Himself

 

Posts: 2172
Joined: 11/28/2005
Status: offline

 
RE: help please - 8/8/2008 16:01:58   
Man! I should know those things! Thanks a lot. It makes a lot of sense.

CSS is great. I am barely scratching the surface since I've specialized in Flash sites but I am using CSS more frequently especially for those customers who want a CMS

Thanks again

_____________________________

Associate Smutter
_____________________
Some people think luxury is the opposite of poverty. It is not. It is the opposite of vulgarity.

(in reply to d a v e)
d a v e

 

Posts: 4348
Joined: 7/24/2002
From: England (but live in Finland now)
Status: offline

 
RE: help please - 8/8/2008 16:04:44   
<anticipates next question> and to centre the div use

#content {margin:0 auto; width: 800px;}

</anticipation>

_____________________________

David Prescott
Gekko web design

(in reply to Mango Himself)
jaybee

 

Posts: 14320
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: help please - 8/8/2008 16:14:31   
Smart Alec! :)

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to d a v e)
d a v e

 

Posts: 4348
Joined: 7/24/2002
From: England (but live in Finland now)
Status: offline

 
RE: help please - 8/8/2008 16:16:53   
naturally i anticipated that too but i didn't want to show off :)

_____________________________

David Prescott
Gekko web design

(in reply to jaybee)
Mango Himself

 

Posts: 2172
Joined: 11/28/2005
Status: offline

 
RE: help please - 8/8/2008 18:42:13   
hahahahaha!!!!! Good anticipation. Nowm how can I put a different background in the new div and leave the page background intact?

_____________________________

Associate Smutter
_____________________
Some people think luxury is the opposite of poverty. It is not. It is the opposite of vulgarity.

(in reply to d a v e)
caz

 

Posts: 3743
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: help please - 8/8/2008 20:34:01   
#whatever {
background-image: url(../images/image.jpg);
background-repeat: no-repeat;
}

or just {background-color: rgb(213, 219, 225);} or hex colours.

:)

_____________________________

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to Mango Himself)
Mango Himself

 

Posts: 2172
Joined: 11/28/2005
Status: offline

 
RE: help please - 8/8/2008 21:08:11   
Caz, jaybee, Dave

no doubt about it! Everyday you guys are better at this and everyday I forget more. Thanks all.

_____________________________

Associate Smutter
_____________________
Some people think luxury is the opposite of poverty. It is not. It is the opposite of vulgarity.

(in reply to caz)
jaybee

 

Posts: 14320
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: help please - 8/9/2008 7:31:41   
Sigh

www.w3schools.com/css/

use it as a reference.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to Mango Himself)
d a v e

 

Posts: 4348
Joined: 7/24/2002
From: England (but live in Finland now)
Status: offline

 
RE: help please - 8/9/2008 7:42:20   
* sigh * :) or just type your question in this forum and hey presto the answer pops up! no searching or thought involved :) :)

_____________________________

David Prescott
Gekko web design

(in reply to jaybee)
caz

 

Posts: 3743
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: help please - 8/9/2008 8:01:35   
*sigh...well, you know the saying about leading them to the water...:)

_____________________________

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to d a v e)
jaybee

 

Posts: 14320
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: help please - 8/9/2008 10:15:15   
Sigh, men. RTFM! :)

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to caz)
Mango Himself

 

Posts: 2172
Joined: 11/28/2005
Status: offline

 
RE: help please - 8/11/2008 22:08:45   
And miss the opportunity to interact with mt friends? No way!

_____________________________

Associate Smutter
_____________________
Some people think luxury is the opposite of poverty. It is not. It is the opposite of vulgarity.

(in reply to jaybee)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets and Accessibility >> help please
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts