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)
-   -   header problem (https://vborg.vbsupport.ru/showthread.php?t=323601)

mp3president 10-09-2016 10:01 AM

header problem
 
Hi there,

I have a problem with my custom header.
The problem is that is not auto scaling to different sizes.
Managed to get it work on the PC, however when i check on mobile it wil not automatically ajust to the screen.

Can any one help me???

The link : www.rlx4u.com

Thx in advance

ForceHSS 10-10-2016 04:42 AM

You don't have the banner on the mobile style

mp3president 10-10-2016 05:16 AM

Oke, have to ajust that, thx.

However, on different resolutions it will not ajust automatically either.
So how do i make it ajust automatically to people with another resolution.

Thx

Seven Skins 10-10-2016 06:48 AM

add this to the style of the logo..

Code:

width: 100%; max-width: 100%;
And remove this from header id.

Code:

height: 150px

mp3president 10-13-2016 02:24 AM

Quote:

Originally Posted by Seven Skins (Post 2576781)
add this to the style of the logo..

Code:

width: 100%; max-width: 100%;
And remove this from header id.

Code:

height: 150px

Removed the height, and added the width in the header template:

<div id="header" class="floatcontainer doc_header" style="overflow: hidden; width: 100%; max-width: 100%;">
<vb:if condition="$stylevar['titleimage']"><div><a name="top" href="{vb:link forumhome}" class="logo-image"><img src="http://www.rlx4u.com/forum/images/Seamus/misc/rlx4u.png" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div><vb:else /><div>&nbsp;</div></vb:if>

But still isn't working.
Kan someone tell me what i am doing wrong???

Thx

Seven Skins 10-13-2016 11:10 AM

Code I posted has to be applied to the logo image. Not to the div.

Code:

.logo-image {width: 100%; max-width: 100%;}

mp3president 10-14-2016 03:47 AM

Ok, i probably look stupid (this is all new for me), but do you mean likt this??

<div id="header" class="floatcontainer doc_header" style="overflow: hidden; width: 100%;">
<vb:if condition="$stylevar['titleimage']"><div><a name="top" href="{vb:link forumhome}" class="logo-image {width: 100%; max-width: 100%;}"><img src="http://www.rlx4u.com/forum/images/Seamus/misc/rlx4u.png" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div><vb:else /><div>&nbsp;</div></vb:if>

I have looked for other "logo" templates but couldn't find anything.
So i guess this one is the one. However i can't get it to work.

Thanks for your help and hopefully your patience.

MarkFL 10-14-2016 03:57 AM

What Seven Skins has given you is a CSS class selector, which means it can be added to your "additional.css" template. It will then affect any HTML element with the class "logo-image." :)

mp3president 10-14-2016 04:27 AM

Ok, now i have seen it i should have known there it has to be changed. I am Stupid hahaha.

However,
There is nothing in the additional.css regarding the logo, only the header.
Do i have to put it over there????

Or do i have to make an custum logo part????

Thx

MarkFL 10-14-2016 04:42 AM

You can simply add the code Seven Skins provided to the end of the template.


All times are GMT. The time now is 05:26 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.01173 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete