Reply
Centerd and Wrapper
Old 04-21-2008, 06:37 AM Centerd and Wrapper
Average Talker

Posts: 16
Hi Everyone,

I was wondering how to put a wrapper around my main table once it's centerd to a fixed width?

Thanks,
loyalblue is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Old 04-21-2008, 10:12 AM Re: Centerd and Wrapper
LadynRed's Avatar
Super Moderator

Posts: 5,617
Location: Tennessee
<div id="wrapper">
<table>
blah blah blah
</table>
</div>
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-21-2008, 11:18 AM Re: Centerd and Wrapper
Average Talker

Posts: 16
Hmmm Are you sre you know what I mean right?

I've got my main Div, Container, I want a shadow around the outside and I'll just have a bgcolour..

Somthing like this in the CSS.

}

#shadowcontainer {
width: 862px;
margin: 0 auto;
background: url(images/dropshadow_bg.gif);
background-repeat: repeat-y;
padding: 0 19px;
}

But that will only give the image on both sides of the main Container, I want it too go right around, Above, Below and Sides. Making Container look rounded.

Thanks,
loyalblue is offline
Reply With Quote
View Public Profile
 
Old 04-21-2008, 02:22 PM Re: Centerd and Wrapper
LadynRed's Avatar
Super Moderator

Posts: 5,617
Location: Tennessee
Quote:
I want a shadow around the outside and I'll just have a bgcolour..
That is NOT what you asked originally - you asked how to put a wrapper around your table

The way to make shadows with CSS is cumbersome and somewhat dodgy. Better to use a repeating bg image for the straight edges, then use images for the rounded top and bottom.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-21-2008, 08:20 PM Re: Centerd and Wrapper
wayfarer07's Avatar
Extreme Talker

Posts: 223
Name: Abel Mohler
Location: Asheville, North Carolina USA
Here's a way to do it with Javascript and no images: http://ajaxian.com/archives/shadedbo...th-drop-shadow
__________________
Go FREELANCE <-----|-----> Hire Me
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 05-03-2008, 11:45 AM Re: Centerd and Wrapper
Average Talker

Posts: 16
Alot of comments on that website with negative saying it's jaggy edgy's and laggy.

Ok so I have my main table centerd, It's 920px...On the body of the page I already have a Background image,

What HTML or CSS code do I need to put a background image around the main table and corners?

Thanks,
loyalblue is offline
Reply With Quote
View Public Profile
 
Old 05-04-2008, 06:23 AM Re: Centerd and Wrapper
Novice Talker

Posts: 5
Name: Adrian
Quote:
Originally Posted by LadynRed View Post
The way to make shadows with CSS is cumbersome and somewhat dodgy. Better to use a repeating bg image for the straight edges, then use images for the rounded top and bottom.
I have the same problem with page which has two imaged background. I've wanted to put 2 div's on the left and right hand side of main container and one with image under it, but these 2 won't change its size as the content is growing. What should I do?

Last edited by respectum : 05-04-2008 at 06:25 AM.
respectum is offline
Reply With Quote
View Public Profile
 
Old 05-04-2008, 11:52 AM Re: Centerd and Wrapper
LadynRed's Avatar
Super Moderator

Posts: 5,617
Location: Tennessee
You do or you do NOT want the background image to resize ?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-04-2008, 05:30 PM Re: Centerd and Wrapper
Novice Talker

Posts: 5
Name: Adrian
No I've no written about the background but about div layers with shadow. I've just pointed that my page has two imaged background to let you see what shadows I was talking about in my post (you can see it in the picture contained in the post I linked).
respectum is offline
Reply With Quote
View Public Profile
 
Old 05-05-2008, 09:36 AM Re: Centerd and Wrapper
Average Talker

Posts: 16
Hi,

I've seen a picture from another thread that It's very simalar want i'm looking for..

http://img141.imageshack.us/my.php?i...mowaniexn4.jpg
http://www.webmaster-talk.com/css-fo...ckgrounds.html

The shadow look?

Also how Do i leave a gap at the top and the bottom?

Thanks,
loyalblue is offline
Reply With Quote
View Public Profile
 
Old 05-05-2008, 10:30 AM Re: Centerd and Wrapper
LadynRed's Avatar
Super Moderator

Posts: 5,617
Location: Tennessee
There are many methods for doing a drop shadow on a background. Most of the pure CSS methods are cumbersome at best, which is why I use images.

Gap at top and bottom ?? You control spacing with margins and padding mostly.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-05-2008, 12:42 PM Re: Centerd and Wrapper
Average Talker

Posts: 16
Cooool,

Yeah I know Margins, I asked to see if there was any other way, I have a topmargin and bottommargin set at 20px, works fine in Frontpage Editor but Doesnt work on Firefox, The main container is at the top instead of 20px down..

How do I code to get Images around my main table?

Thanks,
loyalblue is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to Centerd and Wrapper
 

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML


Page generated in 0.16657 seconds with 15 queries