vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Adding a space along the top (https://vborg.vbsupport.ru/showthread.php?t=311216)

CaptainAwesome 05-10-2014 08:56 AM

Adding a space along the top
 
My logo and the login box is touching the top of the page. I wanted to add a little space along the top.

I had thought about cheating and redo'ing the logo with a border along the top but i was wondering if there was another way of doing it as that cheat will only shift the logo down and not the rest.

DemOnstar 05-10-2014 09:29 AM

A quick look and tried this..

Code:

html {
    padding-top: 0px;
}

Add this to your additional.css, change the zero to what suits.
Let me know if I was anywhere near. Thanks.

CaptainAwesome 05-10-2014 09:38 AM

I'm a newbie and this is my first time messing with anything like this. I looked through the style editor and didn't see anything labelled like that. Am i right in thinking that i can't do that through the Control panel and have to edit that via the file on the server?

DemOnstar 05-10-2014 09:48 AM

Open your acp, go to styles and templates. Search in templates for the word additional. You should then get a list on the right with names of templates and stuff. Double click on additional.css.

If you haven't been there before, the page that opens should be empty.

Copy this code and paste it into the empty page.

Code:

html {
    padding-top: 20px;
}

Click save and reload.

Go to your site and check the difference.
Change 20px to what you want.

Don't worry if it isn't what you want, you can just delete it anyway.
Any changes you make, I would recommend doing it in the additional.css as the page is called last and if all is wrong, you are still ok to do again.

Get yourself a copy of Firebug to help you do things.
It will only work with Firefox browser.

CaptainAwesome 05-10-2014 10:32 AM

Thank you very much. I had not used the "Search in templates" feature before and just learned something new. Your instructions were excellent and right on.

Thanks again.

DemOnstar 05-10-2014 10:49 AM

No problem.

It would also be a good idea to save your changes (the ones that work) in an editor such as Notepad++.

That way, you always have a record should it all go tits up. Just copy/paste.

Good luck.


All times are GMT. The time now is 08:27 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.01025 seconds
  • Memory Usage 1,720KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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