vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   change logo size (https://vborg.vbsupport.ru/showthread.php?t=323102)

hollyboy 07-25-2016 04:21 PM

change logo size
 
In vb4 how do I change the logo size from 150px tto 120px?
Can't find the css

MarkFL 07-25-2016 04:34 PM

The anchor element containing the image has a classname of "logo-image".

hollyboy 07-25-2016 04:39 PM

Quote:

Originally Posted by MarkFL (Post 2573911)
The anchor element containing the image has a classname of "logo-image".

where do i find it in my admin panel?

MarkFL 07-25-2016 04:47 PM

If you wish to use that classname in a CSS selector, you can either add the selector to your "additional.css" template, which will affect only affect the styles whose template you add the selector to, or you can use a plugin to add the selector to all pages regardless of style. Since the logo you want to change is likely only in one style, you should be okay to simply add the selector to your template:

HTML Code:

.logo-image {
        width: 120px;
}


RichieBoy67 07-25-2016 04:48 PM

Quote:

Originally Posted by hollyboy (Post 2573912)
where do i find it in my admin panel?

Just copy that text and paste it into the style manager under Search in Templates.

#Better to use Mark's instructions above though. We must have posted at the same exact time.

rhody401 07-25-2016 07:39 PM

or maybe just upload the logo with the desired size

hollyboy 07-25-2016 08:54 PM

I have added:

.logo-image {
height: 120px;
}

to additional.css

but on my forum: http://www.interfans.org/forum/ the header does not get resized

Please help more

RichieBoy67 07-25-2016 10:44 PM

That is not just your logo but your entire header image. http://www.interfans.org/forum/images/header.jpg

That is why that css is not working.

Are you trying to squeeze in adsense there? The 728 by 90 is way to big for the header. I would suggest putting it under the navbar. Is that the reason you want to resize the logo?

KevinL 07-26-2016 12:09 AM

You could change the css for the navbar to :

.navbar {
margin: 92px 0 0 !important;
}

Just change the margin from 27px to 92px

hollyboy 07-26-2016 05:05 AM

Quote:

Originally Posted by KevinL (Post 2573928)
You could change the css for the navbar to :

.navbar {
margin: 92px 0 0 !important;
}

Just change the margin from 27px to 92px



it does work look
http://www.interfans.org/forum/index.php

MarkFL 07-26-2016 05:15 AM

If you want to change the size of the image (where the height is 120px and the width is 100%), use these selectors:

HTML Code:

.above_body {
        background-size: 100% 120px;
}

.navbar {
        margin: 90px 0 0 !important;
}


hollyboy 07-26-2016 05:40 AM

Quote:

Originally Posted by MarkFL (Post 2573939)
If you want to change the size of the image (where the height is 120px and the width is 100%), use these selectors:

HTML Code:

.above_body {
        background-size: 100% 120px;
}

.navbar {
        margin: 90px 0 0 !important;
}



Still does NOT work :(

I am trying to put this header
http://www.interfans.org/forum/images/header.jpg

previously it was 150px height now 120px

MarkFL 07-26-2016 05:49 AM

Quote:

Originally Posted by hollyboy (Post 2573940)
Still does NOT work :(

It worked when I altered the page source using Firebug. :confused:

hollyboy 07-26-2016 05:51 AM

Quote:

Originally Posted by MarkFL (Post 2573941)
It worked when I altered the page source using Firebug. :confused:


I am trying to put this header
http://www.interfans.org/forum/images/header.jpg

previously it was 150px height now 120px

MarkFL 07-26-2016 05:56 AM

You can resize the image using CSS (as I showed you). It is best though to size the image using an image editor, so that the aspect ratio is exactly what you want.

hollyboy 07-26-2016 05:57 AM

Quote:

Originally Posted by MarkFL (Post 2573943)
You can resize the image using CSS (as I showed you). It is best though to size the image using an image editor, so that the aspect ratio is exactly what you want.

I put exactly your code but does not work.
Can you log in my admin and see?

RichieBoy67 07-26-2016 08:13 AM

Mark is saying you need to resize the image first or the aspect ratio will be off.

Seven Skins 07-26-2016 11:33 AM

Try this:

Add these two lines at the bottom of additionl.css

HTML Code:

.body_wrapper { margin-top: 20px; }
.navbar { margin-top: 120px !important; }



And remove this from your additional.css
HTML Code:

.above_body { height: 152px; }


All times are GMT. The time now is 04:54 PM.

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.01159 seconds
  • Memory Usage 1,752KB
  • 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
  • (5)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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