PDA

View Full Version : Space at top..


shibby2
02-21-2011, 06:40 PM
Hey guys, I was wondering if someone could tell me what code to use so that there is no space at the top of my forum. Here at vbulletin.org, the forum goes straight to the top of the page, but default VB forums have a space (see attached image).

Also, how would I make a 'shadow' effect on the left and right sides of the forum also like the vbulletin.org forum has? I can make the image, but what code would I need to use, and where would it be placed?

Thanks for any help! :)

Lynne
02-21-2011, 06:43 PM
A link to your site would help.

Also, my default 3.8 forum has no space at the top (the default logo goes right to the top), so I would suspect you have added something yourself that is adding the space.

shibby2
02-21-2011, 07:29 PM
My bad, here is an image..

I havent added anything but the image itself.

shibby2
02-21-2011, 08:01 PM
Here is the URL...

Lynne
02-21-2011, 09:39 PM
This is in your CSS:
body { background: none repeat scroll 0 0 #333333; color: #000000; font: 11pt verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif; margin: 5px 10px 10px; padding: 0;}
So, you have a 5px margin at the top. It's probably in your Main CSS page.

shibby2
02-21-2011, 10:12 PM
That worked, thank you so much! :)

I never added that in though, so how would it get there?

Can anyone help with the shadows on the sides?

Lynne
02-21-2011, 10:35 PM
What shadows on the side?

shibby2
02-21-2011, 11:33 PM
The sides of the forum page have shadows, so it looks like it's hovering above the background...Here's a pic...

Lynne
02-22-2011, 01:40 AM
That's from the background image:
html { background: url("https://vborg.vbsupport.ru/images/cstyle/blue/bodybkgd950px.jpg") repeat-y scroll center center #131D2F;}

shibby2
02-22-2011, 03:31 AM
Ahh ok....so it's just a 1px tall image....what determines the width though?

And where is this code placed exactly?

Thanks!

Lynne
02-22-2011, 04:17 AM
Did you look at the image? It's created to fit on a site that has a set width. I would guess they just added that to the Additional CSS text area in the Main CSS page (equivalent to the additional.css template we now use).

shibby2
02-22-2011, 04:30 AM
Yea I looked at it, and I can see it's for a fixed-wdith forum (so is mine). But what I was wondering was ho they determined the width of the image (with all the different screen resolutions that people use). Wouldn't it not work with certain resolutions, or am I missing something very obvious?

Lynne
02-22-2011, 04:34 PM
Look at the CSS - it's centered. So, no matter the width, it's always centered. And it fades to the other blue which is used in the background if the browser is really, really wide.

shibby2
02-22-2011, 07:24 PM
Ahh ok, cool.

Gave it a try with the same code on my forum, but it didn't work. It didnt repeat down the page (only showed one image at the top), and it wasn't centered.

I placed the code in the main CSS, in the additional body attributes. Any ideas? :(

Lynne
02-22-2011, 10:09 PM
The above CSS is for the html tag, not the body tag.

shibby2
02-24-2011, 03:46 AM
Ahh, so where exactly would I place it? Sorry for the dumb questions...

Lynne
02-24-2011, 02:26 PM
Perhaps the additional css area?

shibby2
02-24-2011, 03:14 PM
Yea, tried that, it doesnt show up at all. :(

Lynne
02-24-2011, 03:47 PM
Link to your page? We can't tell what is up without actually seeing it.

shibby2
02-24-2011, 04:48 PM
<a href="http://www.club700xx.com/vb" target="_blank">http://www.club700xx.com/vb</a>

I took the code back out though since it wasnt doing anything.

Lynne
02-24-2011, 04:50 PM
If I cannot look at a page with the CSS in it, then I can't see what is wrong.