Previous Thread
Next Thread
Print Thread
Hop To
#41237 08/04/2004 1:39 PM
Joined: Jan 2004
Posts: 9
O
stranger
stranger
O Offline
Joined: Jan 2004
Posts: 9
Hi there

I am specifying an inline css style within my forum header code to build my navigation menu on my ubb.threads. If you look on my hompeage you can see the menu - http://www.teentoday.co.uk . However, on my message boards the CSS is being overidden by the forum CSS settings. Anyone got an idea of how I can correct this?
http://www.teentoday.co.uk/ubbthreads/ubbthreads.php
I thought inline CSS overrides all other?

Joined: Jan 2004
Posts: 9
O
stranger
stranger
O Offline
Joined: Jan 2004
Posts: 9
sorry to bump this but can anyone help at all?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
I'm not real sure on the best way to get around that. You might try asking over on threadsdev.com Lots of people familiar with CSS nuances over there.

Joined: Jun 2006
Posts: 346
J
enthusiast
enthusiast
J Offline
Joined: Jun 2006
Posts: 346
<edit>Okay found it</edit>

Have you tried pasting this into..

<style>
a.menulink {
display: block;
width: 105px;
background-color: #3366FF;
text-align: left;
text-decoration: none;
letter-spacing: 1pt;
font-family:tahoma,arial;
font-weight:bold;
font-size: 82%;
color: #FFFFFF;
border-width: 1pt;
border-style: none dashed none;
border-color: #000099;
border-collapse: collapse;
}

a.menulink:hover {
background-color: #6666FF;
}
</style>

your header.inc.php (header insert) section in threads?


--
Website Development and Management
www.jcswebdev.com
Joined: Jan 2004
Posts: 9
O
stranger
stranger
O Offline
Joined: Jan 2004
Posts: 9
hey. that seems to change some of it but not all. to be honest my css skills are not that good and I'm finding this quite hard! Thanks for your help so far..

Joined: Jun 2006
Posts: 346
J
enthusiast
enthusiast
J Offline
Joined: Jun 2006
Posts: 346
Looking at your source view I see..

Code
&lt;tr&gt;
    &lt;td width="100" bgcolor="#0068CF"&gt;
    &lt;a href="http://www.teentoday.co.uk/gossip/" class="menulink" class="&amp;{ns4class};"&gt;

      Celeb Goss&lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;
    &lt;tr&gt;
    &lt;td width="100" bgcolor="#0068CF"&gt;
    &lt;a href="http://www.teentoday.co.uk/mobile/" class="menulink" class="&amp;{ns4class};"&gt;
      Mobile&lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;
    &lt;tr&gt;

    &lt;td width="100" bgcolor="#0068CF"&gt;
    &lt;a href="http://www.teentoday.co.uk/shop/" class="menulink" class="&amp;{ns4class};"&gt;
      Shop&lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;

notice the class="&{ns4class};" instead of class names? Not to mention the double tags

class="menulink" class="&{ns4class};"

This is not proper css syntax


--
Website Development and Management
www.jcswebdev.com
Joined: Jan 2004
Posts: 9
O
stranger
stranger
O Offline
Joined: Jan 2004
Posts: 9
Hi there
The reason the class is in there twice is because the code includes a script to use the relevant class for older NS browsers. Anyway i have removed it to see if it makes any difference and it doesn't. Blatantly the UBB threads CSS is overriding the menu CSS but i thought inline CSS was meant to take precedent over external CSS? Any more ideas? If not I shall go to ubbdev.com

Joined: Jun 2006
Posts: 346
J
enthusiast
enthusiast
J Offline
Joined: Jun 2006
Posts: 346
Without looking closer, couldn't say at this point. Try threadsdev.com


--
Website Development and Management
www.jcswebdev.com

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
0 members (), 744 guests, and 147 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)