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
Problem trying to code this particular psd
Old 06-26-2010, 07:45 PM Problem trying to code this particular psd
Novice Talker

Posts: 6
Trades: 0
Hi I'm not sure how I should slice and code this particular psd.....here's a screenshot but bear in mind I'm having trouble only coding the main body section after the navbar. Before that I'm fine.

http://www.juanchandler.com/screenshot.png

Secondly here are the .png's I've sliced from the main image.

http://www.juanchandler.com/body_bgtop.png
http://www.juanchandler.com/body_background.png

Bear in mind it's going to be a Wordpress theme ie. the height of the container would be different each time, so body_background.png needs to tile vertically. Then the text needs to start further up over body_bgtop.png which won't repeat as a background.

So this is what I've written

Code:
<style type="text/css">
 
body{
background: #000000;
margin: 0px;
padding: 0px;
color: #ffffff
}
 
#container{
width: 1245px;
margin: 0px auto;
background: url(images/body_background.png) repeat-y;
}
 
#container-bgtop{
width: 1245px;
background: url(images/body_bgtop.png) no-repeat;
}
</style>
 
 
</head>
 
<body>
 
  <div id="container">
     <div id="container-bgtop">
           Text goes here
        </div>    
     </div>
 
</body>
Whilst this does achieve the goal I mentioned above it makes body_background.png appear overlapping body_bgtop.png.

If someone could advise it would be much appreciated.
juanc is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-27-2010, 10:24 AM Re: Problem trying to code this particular psd
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
So, set the body-background to start 920px down, right below your top image. Also, if you remove the 50px right margin on inner-wrapper, the full background with the ragged edges shows up.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem trying to code this particular psd
 

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