Jump to content

CSS help anyone?


gesshrck

Recommended Posts

I'm new to CSS, but I'm doing pretty well considering that.

 

I'm nearly finished with a layout I've been designing for myself, but the only problem is I put everything in a scrollbox, and I don't know how to position the scrollbox so it fits with the background.

 

http://i.imgur.com/o3hN3.png

 

.content {

height: 400px;

width: 500px;

overflow: auto;

display: block;

padding: 20px;

}

That is the coding that enabled everything to be in the scrollbox. Is this the correct way to do it? How can I move it so that it fits into the box in the background?

 

Thanks.

Link to comment
Share on other sites

.content {
position: absolute;
top: ###px;
left: ###px;
height: 400px;
width: 500px;
overflow: auto;
display: block;
padding: 20px;
}

 

You'll have to play around with values for top and left. Other than that you had everything right.

Link to comment
Share on other sites

.content {
position: absolute;
top: ###px;
left: ###px;
height: 400px;
width: 500px;
overflow: auto;
display: block;
padding: 20px;
}

 

You'll have to play around with values for top and left. Other than that you had everything right.

 

I did that earlier, and it didn't change anything. =\

 

Edit:

Ok, nevermind, I said "right" instead of "left", and it didn't work. I have got it now.

 

Last problem: I have a big yellow header at the top. And it won't go away, and I'm not sure how to get rid of it because I don't really know what attribute it has.

http://i.imgur.com/cd9Kf.png

^That yellow header.

I already did

#header, #footer, #ncmall, #nst, .sf, hr, #userneohome {

display: none;

}

So what am I missing?

 

Bump.

 

Nevermind. It was,

 

#ban {

display: none;

}

:)

 

 

This post has been edited by a member of staff (Spritzie) because of a violation of the forum rules.

Please don't post multiple times in a row. If you would like to add something, use the 'Edit' button. Also, please keep your posts at 7 words or above..

Please check your user inbox to see if you have been contacted regarding this incident, then review our rules.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...