The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.
So, I'm trying to edit some CSS and I'm in a bit over my head, so I'm hoping you could tell me where to look to find the instruction I need. I have a basic understanding of what CSS is and how it does, but I'm being thrown a bunch of stuff with the tag #xg; things like
#whatever is for an element named whatever. .something is a class name.
ex:
<div id="whatever" class="something">
commas separate ids and classes that have the same property.
#whatever, .something {color:red}
will make the text color of any element with id "whatever" or class "something" red.
functionally, id's and classes are very similar, tho you can only use an id on a single element on a page.
So, I'm trying to edit some CSS and I'm in a bit over my head, so I'm hoping you could tell me where to look to find the instruction I need. I have a basic understanding of what CSS is and how it does, but I'm being thrown a bunch of stuff with the tag #xg; things like
Incorrect. The inclusion of the comma in the first CSS declaration means the style applies to both elements. The omission of the comma in your version refers only to an element with a class of "xg_headerbg" that is within an element with an id of "xg".
Incorrect. The inclusion of the comma in the first CSS declaration means the style applies to both elements. The omission of the comma in your version refers only to an element with a class of "xg_headerbg" that is within an element with an id of "xg".
Whoops !
I misread it initially.
I usually stack my declarations as following and overlooked it.
Posts
ex:
<div id="whatever" class="something">
commas separate ids and classes that have the same property.
#whatever, .something {color:red}
will make the text color of any element with id "whatever" or class "something" red.
functionally, id's and classes are very similar, tho you can only use an id on a single element on a page.
past that, start here:
http://www.w3schools.com/
get firefox and the webdev toolbar
https://addons.mozilla.org/en-US/firefox/addon/60
which will allow you to edit css live on a page.
. denotes a class.
In the case that you provided, background-repeat: repeat-x means that any background image would only be repeated width-wise.
#xg, .xg_headerbg {
background-repeat: repeat-x;
}
This refers to an element with a class of "xg_headerbg" that is inside of an element with an ID of "xg"
This elements can be anything but are most likely <div>.
they could have written
div#xg div.xg_headerbg{
background-repeat: repeat-x;
}
Incorrect. The inclusion of the comma in the first CSS declaration means the style applies to both elements. The omission of the comma in your version refers only to an element with a class of "xg_headerbg" that is within an element with an id of "xg".
Whoops !
I misread it initially.
I usually stack my declarations as following and overlooked it.
#xg,
.xg_blahblah {
}
http://www.positioniseverything.net/explorer.html
Also, the firebug tool for Firefox I found useful for CSS as well (as well as js)
https://addons.mozilla.org/en-US/firefox/addon/1843