Reply
Centered table with left+right shadow
Old 03-17-2009, 01:01 PM Centered table with left+right shadow
Novice Talker

Posts: 7
Name: jordan
Trades: 0
I wanna make a table that would go from the top of the browser to the bottom. How would I add a drop shadow on both the right side and left side of the table? I want it to work with mostly all browsers. If I have to use a image could someone teach me how to do that? I made the image.

Here is a example what I want:
iMod0711 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 03-17-2009, 01:10 PM Re: Centered table with left+right shadow
stevej's Avatar
Professional Multitasker

Posts: 993
Location: In a flying house
Trades: 0
Why do you want to use a table? Seeing that this looks like it's for a layout, use divs instead.

Code:
body {
/*so that it will work for  all screen sizes */
background: url('path/to/the/grain/behind/the/background.jpg'); 
}
#container {
margin: 0 auto;
width: 400px;
height: 100%;
background: url('path/to/your/image.jpg');
}
#content {
padding: 10px;
width: 100%;
}
HTML Code:
<div id="container">
<div id="content">
content
</div>
</div>
- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-17-2009, 01:22 PM Re: Centered table with left+right shadow
Novice Talker

Posts: 7
Name: jordan
Trades: 0
I already setup the background image but what you told me to do didn't work. No image showed up. This is what I have.

Code:
body {
  background-image: url(./images/bg.bmp); 
  padding:20px;
  margin:0px;

}

#center {
margin: 0 auto;
width: 400px;
height: 100%;
background: url('images/center.gif');
}
HTML Code:
<head>
<head>
<link href="myCSS.css" rel="stylesheet" type="text/css">
</head>
<body>
<div style="center">
</div>
</body>
iMod0711 is offline
Reply With Quote
View Public Profile
 
Old 03-17-2009, 01:33 PM Re: Centered table with left+right shadow
chrishirst's Avatar
Super Moderator

Posts: 26,478
Location: Blackpool. UK
Trades: 0
add
Code:
html, body {
   height:100%;
}
to your stylesheet
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | Crowded Nightclub? | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Centered table with left+right shadow
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB 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.09630 seconds with 13 queries