vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Space at top.. (https://vborg.vbsupport.ru/showthread.php?t=259225)

shibby2 02-21-2011 06:40 PM

Space at top..
 
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

1 Attachment(s)
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:
HTML Code:

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

1 Attachment(s)
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 Code:

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.


All times are GMT. The time now is 12:55 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01532 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete