fecking css
- Started
- Last post
- 19 Responses
- RustyBadge
can anyone help here...
http://www.lighterfluidweb.com/w…
I want the menus "design", "build" and "promote" to float to the right and be in a different colour... I've been tampering all day trying to make this happen!
Any clever chaps there can help me?
- paraselene0
bad link.
- UndoUndo0
you mean align to the right? or float to the right hand side of the page/div?
- RustyBadge0
I want the 3 words I mentioned to align to the right of the menu block:
e.g.
Home
Web Design
design
build
promote
Products
Clients
About usIs this possible?
- UndoUndo0
I wrote you something in there ^
- RustyBadge0
You Sir are a legend... many thanks.
It's not turning the text black though. I'd really like the font-color to change here, but it's obviously conflicting somewhere... any ideas?
- UndoUndo0
# menu a{
}this is specifying color: #87ACBB;
which aint black ;)
- RustyBadge0
Yeh I know - I only want the menu items which are aligned right to change colour...
- UndoUndo0
you can use this:
#menu li.txtR a {
display: block;
text-decoration: none;
color: #000;
padding-left: 5px;
width: 130px;
background: #fff;}
- RustyBadge0
Thank you very much undo
- hiten0
#menu li.txtR
whats that? Ive seen it before I knwo the first part is a div then a list bullet but the .txtR what the hell is that?
- Nairn0
the given class name?
could be .txtKITTENFUCKER, if you wanted it to be..
- UndoUndo0
#menu - is the name of the duv yr in
li - is the list element tag (standard html).txtR is the class applied to the list element tag ie.
and a is the link inside the list element ie
my link text !
- UndoUndo0
NT stripped my last post using [ }instead of for tags
[li class="txtR"][a href="blah"]my link text[/a][/li]!
- UndoUndo0
arrgh [ instead of <
] instead of >
- hiten0
i see i would normally write them all individually. like define the div and then the class but you have it combined sort of which threw me off.
what are the advantages of combining? I see alot of css with it like that.
h1.text and things like that.
- UndoUndo0
the only benefit is when you want to be really specific to the tags as they are layed out. in this example you could have written the class as
.txtR a {
}it all depends how you want to use the classes
- hiten0
thx undo.
so one isnt better then another?
- hiten0
forget the last question i guess it depends on how its used. :)
Thx UNDO.
- UndoUndo0
the general one is best because the code can be reused and is therefore more efficient, only use the specific one is you really have to (ie not alot)!