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
Old 11-17-2006, 06:52 AM Margin Thing Help
Skilled Talker

Posts: 60
Trades: 0
Hello all,

Say I have this:

body{
margin:0;
text-align:center;
background: #FFFFFF url("rightsidebg.gif");
background-repeat:repeat-x;
}

body #rightborder{
background-image:url(rightbordershadow.gif);
background-repeat:no-repeat;
margin-left:120px;
}

then I have

<body>
<table>
bla bla bla
</table>
</body>

and my purpose is to add a right border to the main body, just aside the main body, so that the body has shadow effect. But everytime I move the rightborder from left, it pushes the whole thing to the left.

Can someone help?

Thanks a lot!
__________________

Please login or register to view this content. Registration is FREE
- Over 9,000 iphone, ipad apps
wll6568 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-17-2006, 11:16 AM Re: Margin Thing Help
Experienced Talker

Posts: 37
Trades: 0
Quote:
Originally Posted by wll6568 View Post
my purpose is to add a right border to the main body, just aside the main body, so that the body has shadow effect. But everytime I move the rightborder from left, it pushes the whole thing to the left.
Right ok, not quite sure what you ment, try to explain it again, maybe a diagram to help, i also cleaned up your CSS for you, looks a bit neater now, and took some things out which you didn't need.

Code:
 body {
 margin: 0;
 text-align: center;
 background: #FFFFFF url("rightsidebg.gif") repeat-x;
}
 
#rightborder {
 background-image:url(rightbordershadow.gif) no-repeat;
 margin-left: 120px;
 }
gaz545 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Margin Thing Help
 

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.11180 seconds with 12 queries