The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
problem with .time and other .css styles
So I wanted to change the header of my forum to match that of my (joomla) frontpage. And while I did manage to do just that there are some problems mainly in the css/font department.
See my screenshot edit: And I have no idea how to make thumbnails on this forum, long live the auto thumbnail script . As you can see in the screenshort certain parts are displayed in a bold style like the time and the amount of readers. Now I checked .time and that is: .time { color: #D12D2D; } So somehow it gets overruled by one of the joomla css templates I put in the header, which I find strange, since they are placed below the vbulletin css stuff. Any idea what I did wrong? I attached the source of the new forum style to this post. |
#2
|
||||
|
||||
most likely inherited from your joomla css
scan your css for "span" |
#3
|
|||
|
|||
Ok, but take this one for example that determines the span for the time:
<span class="time">15:35</span> Nowhere in one of the joomla css files can I find a span .time? |
#4
|
||||
|
||||
you need to look for "span" not "time" ...
the style is inherited via the 'span' values found on your joomla css files (vbulletin doesn't add bold to span) |
#5
|
|||
|
|||
Sorry that I am a noob on this subject, but the joomla css files are filled with spam ehm I mean span for example from template_css.css:
Quote:
|
#6
|
||||
|
||||
You need to understand a little bit about how CSS works - and more specifically inheritance.
You have your time sitting in a span tag with the class "time" and that class only defines a color. Surrounding that tag, is the div tag with class smallfont. That class provides both a font size and style and thus your time will have that font size and style. Now, surrounding that tag is a td tag with class alt1. That class defines a background color and a font color. Since your time class is 'closer' to the actual element (your time), that color definition (for class=time) replaces the color definition from alt1. Keep going up and up and look at all the classes that surround your time. If somewhere up above there is a font-weight defined and it is never replaced, then that font-weight takes precedence. You can chase that down and change it, or you can just simply add in the font-weight definition to your time class: HTML Code:
font-weight: normal |
#7
|
||||
|
||||
well said Lynne :up:
could be this: Code:
.page span { color: #000; font-weight: bold; } |
#8
|
|||
|
|||
THanks guys for trying to help me out, sometimes I forget the little things, but this is the direct url to my forum:
www.pokeralsbijbaan.nl/forums The template I modded can be found by switching to "de nieuwe layout" in the dropdown menu at the bottomleft. I can't find the .page span anywhere princeton or is that an example of what it could look like? And I tried adding font-weight: normal to the .time but sadly it isn't doing anything. But otherwise I'll try to pick up CSS when I have some time later on, really busy with my exams at the moment . |
#9
|
||||
|
||||
That.... isn't right!
OK, how about changing that font-weight line to: HTML Code:
font-weight: normal !important; |
#10
|
|||
|
|||
That did the trick, thanks a lot!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|