Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Centered table with left+right shadow
Old 03-17-2009, 02: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
 
 
Register now for full access!
Old 03-17-2009, 02:10 PM Re: Centered table with left+right shadow
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
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, 02: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, 02:33 PM Re: Centered table with left+right shadow
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,516
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
add
Code:
html, body {
   height:100%;
}
to your stylesheet
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
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.14110 seconds with 12 queries