![]() |
Fluid 3 part header
1 Attachment(s)
Not a difficult thing to do but I thought I would post it any way as some people seem to having trouble with getting their header image to have an align image right as you can't do it in stylevar.
This is fluid all you need to do is make 3 images, I named mine left, right and background (See attachment), you can be more creative :) In your header template find Code:
<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div> Code:
<div id="headerFill"><div id="headerL"></div><div id="headerR"></div></div> Code:
#headerFill{ Thanks to hoof for the CSS update. Mark as installed for support |
Tagged as this may allow me to use my jpg's I believe?
|
yes you can :)
|
Yes sweet too as I didn;t need the left.jpg as in the code change the jpg to your name. :)
|
Thanks this is exactly what i needed. Marked Installed and rated Excellent
|
naaa aaaa aaa aaa aaa aaaiceee :) love you man
|
Why are you using the Table tag with vBulletin 4.0? This will break strict xHTML compliancy, which is what version 4 is all about.
It should be coded as a div layout, not a table layout. |
good modification.thanks.
|
Maybe something im doing wrong here, but when i use this, the right image replaces the details in top right of forum
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
Quote:
|
Quote:
Welcome, Magz. You have 0 unread messages; Total 22. You last visited: Today at 20:11; You Have 4,062 Unread Posts |
Quote:
|
Quote:
|
|
Looks good
|
Quote:
It should be strict xHTML to comply with vBulletin 4.0, otherwise you are just breaking the correct coding. Google would probably penalize you, if that was in every page of your site's header code. If it was done correctly it would require CSS to be defined and use all div's, not tables. Probably about 4-5 CSS rules is all that it requires, nothing major. |
Google doesn't penalise tables or reward tableless.
Google rewards content |
Quote:
|
To do this just add some lines to your CSS and then call it out in the template you want it to display.
Example: for a 3 part image in the CSS add Code:
#headerFill{ Then in your header template add the following: Code:
<div id="headerFill"><div id="headerL"></div><div id="headerR"></div></div> |
@ Hoof, Thankyou for that, Much appreciated!
|
Quote:
|
Quote:
vb4 no longer using CSS it uses StyleVars |
Quote:
|
1 Attachment(s)
Quote:
i have attached a screenshot of the admincp with main css showing as you may be aware it mentions "This CSS file is obsolete and is available here for reference purposes only." |
Admin panel>> Styles and Templates>>>>>Edit Templates>>>>>>>vbulletin.css Go there I believe.
|
thanks
|
Quote:
That's because you're looking at main.css not vbulletin.css.. i think. |
1 Attachment(s)
Updated to Beta 5, and my header got jacked up.
Was working 100% before the upgrade. Bugs: The floating image incorrectly ends, the words go off the right side of the window, and there are now two grey lines between the header and the nav bar. It does not matter the size of the window. See attached image to see bugged header. Here is my current (bugged) header template code: Code:
<div class="above_body"> |
You have a solid colour background there's no need to use this, just chose your image in your stylevar and the background colour to match.
|
No solid color. There is a gradiant along the top of the header. (Dark grey.) Somewhat hard to see in the resized thumbnails that were created when I uploaded.
|
Quote:
|
Just making sure I am tracking properly...
Revert header templates (removing the fluid header). Add repeating background gradient to header_background stylevar. Add logo image to titleimage stylevar. Correct? Thanks for the help. |
Why not use the code below? Does it not work?
Quote:
|
It did work with Beta 4, perfectly.
Upgrade to Beta 5 broke it. |
Since it is a template or added css mod you may had to reput it back into its place again for it to work?
|
Quote:
|
Are there any news regarding how to make a fluid three part header now when vB4 is in the Release Candidate stage? I searched for the string to replace (posted at the top of this page), but that code seems to have been changed.
|
All times are GMT. The time now is 06:23 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|