1 (edited by Dr.Jeckyl 2006-07-15 17:35)

Topic: style a single nav link?

how do i style just one nav link like the search link? i would like to highlight it with either an image or make it a contrasting color as to stand out a bit more. hopefully to encourage people to use it a bit more.;)

thanks in advance.

~James
FluxBB - Less is more

Re: style a single nav link?

#navsearch { color: #FF0000; }

Re: style a single nav link?

do i just add that to my style_cs.css?

~James
FluxBB - Less is more

Re: style a single nav link?

yep

Re: style a single nav link?

hmm.. i added it to a fresh oxygen style on a frsh install and it's still white. is there a specific place to put it?

~James
FluxBB - Less is more

Re: style a single nav link?

Try putting .pun before it.

Re: style a single nav link?

/* 4.2 This is the colour for links in header rows and the navigation bar */

.pun H2 A:link, .pun H2 A:visited, #brdmenu A:link, #brdmenu A:visited {COLOR: #FFF}
.pun H2 A:hover, #brdmenu A:hover {COLOR: #FFF} 
.pun #navsearch { color: #FF0000; }

this is what i have now. and still no go.

~James
FluxBB - Less is more

Re: style a single nav link?

li#navsearch maybe?

Re: style a single nav link?

nope

~James
FluxBB - Less is more

10

Re: style a single nav link?

He's trying to style the link not the list item.
#brdmenu #navsearch a:link, #brdmenu #navsearch a:visited {}
#brdmenu #navsearch a:hover {}

Re: style a single nav link?

.pun, #navsearch { color: #FF0000; }

this made all the black text red... getting closer.

~James
FluxBB - Less is more

Re: style a single nav link?

What Paul said should work smile

13 (edited by Dr.Jeckyl 2006-07-15 18:51)

Re: style a single nav link?

#brdmenu #navsearch a:link, #brdmenu #navsearch a:visited {#ff0000}
#brdmenu #navsearch a:hover {#ff0000}

this is a no.

my whole oxygen_cs.css:

/****************************************************************/
/* 1. BACKGROUND AND TEXT COLOURS */
/****************************************************************/



/* 1.1 Default background colour and text colour */

BODY {BACKGROUND-COLOR: #FFF}

.pun {COLOR: #333}

DIV.box, .pun BLOCKQUOTE, DIV.codebox, #adminconsole FIELDSET TH, .rowodd, .roweven {BACKGROUND-COLOR: #F1F1F1}
#adminconsole TD, #adminconsole TH {BORDER-COLOR: #F1F1F1}

/* 1. 2 Darker background colours */

TD.tc2, TD.tc3, TD.tcmod, #postpreview, #viewprofile DD, DIV.forminfo,
#adminconsole FIELDSET TD, DIV.blockmenu DIV.box, #adstats DD {BACKGROUND-COLOR: #DEDFDF}

/* 1.3 Main headers and navigation bar background and text colour */

.pun H2, #brdmenu {BACKGROUND-COLOR: #0066B9; COLOR: #FFF}

/* 1.4 Table header rows */

.pun TH {BACKGROUND-COLOR: #D1D1D1}

/* 1.5 Fieldset legend text colour */

.pun LEGEND {COLOR: #005CB1}

/* 1.6 Highlighted text for various items */

.pun DIV.blockmenu LI.isactive A, #posterror LI STRONG {COLOR: #333}

/****************************************************************/
/* 2. POST BACKGROUNDS AND TEXT */
/****************************************************************/

/* 2.1 This is the setup for posts. */

DIV.blockpost DIV.box, DIV.postright, DIV.postfootright {BACKGROUND-COLOR: #DEDFDF}
DIV.postright, DIV.postfootright {BORDER-LEFT-COLOR: #f1f1f1}
DIV.postleft, DIV.postfootleft, DIV.blockpost LABEL {BACKGROUND-COLOR: #F1F1F1}

/* 2.2 Background for post headers and text colour for post numbers in viewtopic */

DIV.blockpost H2 {BACKGROUND-COLOR: #006FC9}
DIV.blockpost H2 SPAN.conr {COLOR: #AABDCD}

/* 2.3 This is the line above the signature in posts. Colour and background should be the same */

.pun HR {BACKGROUND-COLOR: #333; COLOR: #333}

/****************************************************************/
/* 3. BORDER COLOURS */
/****************************************************************/

/* 3.1 All external borders */

DIV.box {BORDER-COLOR: #0066B9}

/* 3.2 Makes the top border of posts match the colour used for post headers */

DIV.blockpost DIV.box {BORDER-COLOR: #006fC9 #0066B9 #0066B9}

/* 3.3 Table internal borders. By default TH is same as background so border is invisible */

.pun TD {BORDER-COLOR: #BBCEDE}
.pun TH {BORDER-COLOR: #D1D1D1}

/* 3.4 Creates the inset border for quote boxes, code boxes and form info boxes */

.pun BLOCKQUOTE, DIV.codebox, DIV.forminfo, DIV.blockpost LABEL {BORDER-COLOR: #ACA899 #FFF #FFF #ACA899}

/* 3.5 Gecko's default fieldset borders are really nasty so this gives them a colour
without interferring with IE's rather nice default */

.pun DIV>FIELDSET {BORDER-COLOR: #ACA899}

/****************************************************************/
/* 4. LINK COLOURS */
/****************************************************************/

/* 4.1 This is the default for all links */

.pun A:link, .pun A:visited {COLOR: #005CB1}
.pun A:hover {COLOR: #B42000}

/* 4.2 This is the colour for links in header rows and the navigation bar */

.pun H2 A:link, .pun H2 A:visited, #brdmenu A:link, #brdmenu A:visited {COLOR: #FFF}
.pun H2 A:hover, #brdmenu A:hover {COLOR: #FFF} 

#brdmenu #navsearch a:link, #brdmenu #navsearch a:visited {#ff0000}
#brdmenu #navsearch a:hover {#ff0000}

/* 4.3 This is for closed topics and "hot" links */

LI.postreport A:link, LI.postreport A:visited, TR.iclosed TD.tcl A:link, TR.iclosed TD.tcl A:visited {COLOR: #888}
LI.postreport A:hover, TR.iclosed TD.tcl A:hover {COLOR: #AAA}
LI.maintenancelink A:link, LI.maintenancelink A:visited {COLOR: #B42000}
LI.maintenancelink A:hover {COLOR: #B42000}

/****************************************************************/
/* 5. POST STATUS INDICATORS */
/****************************************************************/

/* These are the post status indicators which appear at the left of some tables. 
.inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and
.isticky = sticky topics. The default is "icon". By default only .inew is different.*/

DIV.icon {BORDER-COLOR: #E6E6E6 #DEDEDE #DADADA #E2E2E2}
TR.iredirect DIV.icon {BORDER-COLOR: #F1F1F1 #F1F1F1 #F1F1F1 #F1F1F1}
DIV.inew {BORDER-COLOR: #0080D7 #0065C0 #0058B3 #0072CA}
~James
FluxBB - Less is more

14

Re: style a single nav link?

{FF0000} what, color, background, height?

Re: style a single nav link?

bold, red, stock height and background.

~James
FluxBB - Less is more

Re: style a single nav link?

.pun #brdmenu #navsearch a { color: #FF0000; }

That works for me big_smile

17

Re: style a single nav link?

What I said is the correct way, you just forgot "color" in the declaration.

Re: style a single nav link?

got it! thanks guys.

~James
FluxBB - Less is more

Re: style a single nav link?

How can i style a navlink that i wrote in the options?

20 (edited by Dr.Jeckyl 2006-08-28 16:03)

Re: style a single nav link?

use html.
example:

0 = <font style="background-color: #0000ff"><a href="URL">LINK</a></font>
~James
FluxBB - Less is more

Re: style a single nav link?

Dr.Jeckyl wrote:

use html.
example:

0 = <font style="background-color: #0000ff"><a href="URL">LINK</a></font>

Eww.

0 = <a href="link" style="color: #FF0000">Linkeh</a>

22 (edited by Dr.Jeckyl 2006-08-28 16:06)

Re: style a single nav link?

whatevah. wink

~James
FluxBB - Less is more

23

Re: style a single nav link?

If you view source you will find the links you added have an id e.g. #navextra1, #navextra2. That means you can style them the same as any other nav links.

24

Re: style a single nav link?

Paul wrote:

If you view source you will find the links you added have an id e.g. #navextra1, #navextra2. That means you can style them the same as any other nav links.

What file is this in?

25

Re: style a single nav link?

No file. Just right click and view source, you will see the id's were inserted when the menu was generated.