HighDots Forums  

CSS, tables, or some other way?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS, tables, or some other way? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
MercuryLime
 
Posts: n/a

Default CSS, tables, or some other way? - 10-30-2005 , 08:59 PM






Ok, I have a very dark background on my site, and I want to have a box on top
of the background, spanning about 90% horizontally on the page, with a much
light background, where I put the text. There are probably different ways to do
this.. How would I just put a box with a different color background around
text? How could I use images to do it? (Like, an image of a nice looking
rounded edge on each corner, and then a scaled image bar for each of the sides)

I have a feeling I could do it in CSS but all I'm familiar with is HTML, and I
guess I could use a table, but I think that would get messy..

Any suggestions / help?

Thanks,
- Patrick


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: CSS, tables, or some other way? - 10-31-2005 , 07:39 AM






Wrap the text in a div. Style the div to have padding to push the text away
from the borders, a background color consistent with your needs, and a
border, e.g.,

<div style="width:300px; background-color:#CFC;padding:15px;border:4px
groove green;">
<p>Here is your text! Here is your text! Here is your text! Here is your
text! Here is your text! Here is your text! </p>
</div>

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"MercuryLime" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Ok, I have a very dark background on my site, and I want to have a box on
top
of the background, spanning about 90% horizontally on the page, with a
much
light background, where I put the text. There are probably different ways
to do
this.. How would I just put a box with a different color background around
text? How could I use images to do it? (Like, an image of a nice looking
rounded edge on each corner, and then a scaled image bar for each of the
sides)

I have a feeling I could do it in CSS but all I'm familiar with is HTML,
and I
guess I could use a table, but I think that would get messy..

Any suggestions / help?

Thanks,
- Patrick




Reply With Quote
Reply




Thread Tools
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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.