Selectors
By Ruben Garciaeztigma. Friday, August 3, 2007 6:35:43 PM
As I told you before, a selector is the part of the page that we're going to modify. Your Opera Blog handles three kinds of selectors: id, type and class. The id selector (#name) is the one that modifies a certain section of the blog, such as the header, the sidebar or the posts.
#top {
background:#335fa3 url(/community/graphics/themes/top-blue.gif);
border-bottom:1px solid #ddd;
color:#fff;
}
If you take a look at the source of you blog, you'll find something similar to this
<div id="top">That means that everything between both "divs" will be modified by the #top selector. The type selector is used to modify a specific HTML tag, within the id selector. To use it you just have to type the tag you want to modify in front of the id selector.
#top h1 {
padding-top:22px;
}
In the example, we are modifying the h1 tag within the #top selector.
Finally, a class selector applies to many elements at once, or a sub-set of specific HTML elements, like the color of the username link (it will only modify such item)
a.username:link, a.username:visited, {
color:#176b9b;
}
As you can see, you can apply style to several selectors at once just by separating them with a comma.
TASK!
Identify the selectors in the CSS of the last post and write down which type they are. On the next post we're going to start having fun!












-demiphonic # Wednesday, August 8, 2007 1:58:32 PM
urrrrr so:
#menu {
background:#f8f8f8 url(/community/graphics/themes/menu1.gif);
border-bottom:1px solid #fff;
}
would be a selector? or is just this part: #menu considered the selector?
Ruben Garciaeztigma # Wednesday, August 8, 2007 4:00:15 PM
The source code are the instructions that your browser follows to display the page.
Only the #menu part is considered the selector, the other parts are the properties and the values, which we'll cover later.
-demiphonic # Wednesday, August 8, 2007 4:55:06 PM
Dark FurieFurie # Saturday, August 18, 2007 2:03:19 AM
If not could we have a large selectors "map" to reference?
.Kite Geek # Saturday, September 8, 2007 10:11:27 PM
http://files.myopera.com/Kite%20Geek/files/Transformers-Banner5Kite.jpg
OK, I have my graphics in my file thingy here in Opera as it shows...
But, when you put in the infor into the CSS design page with ( and ) around it of course
The % of the %20 goes away. O,o And, I can not see the image.
I tried using - , and _ and nothing, and also yousillythingyou. But, nothing has worked... Did I kill it?
Sorry if this is the wrong spot for this. @,*
Violeta Rosalesvioletisha # Saturday, September 8, 2007 11:37:04 PM
.Kite Geek # Sunday, September 9, 2007 1:47:08 PM
It seems that CSS treats the % in from of 20 as nothing. Or, the % is used in another way with CSS... Not sure yet.
But, for now I do have a means to have my own images show.
Sheesh, I thought my basic HTML would help me more. LOL
Louc louderf_manila # Thursday, September 20, 2007 8:19:28 AM
I guess Im having the same problem
http://files.myopera.com/louderf_manila/albums/359088/chalkboardsnap%20copy.png
.Kite Geek # Thursday, September 20, 2007 9:15:22 AM
-demiphonic # Friday, September 21, 2007 2:42:50 AM
.Kite Geek # Friday, September 21, 2007 12:54:48 PM
Louc louderf_manila # Friday, September 21, 2007 10:14:24 PM
Violeta Rosalesvioletisha # Saturday, September 22, 2007 3:58:41 AM
I don't know what's happening with that %20, but i have a solution to all of your problems, the %20 means a "blank space" (wich is not recomended on web sites) so:
louderf_manila: the name of you image is chalkboardsnap copy.png, right??? Well.. RENAME IT to chalkboardsnapcopy.png or chalkboardsnap_copy.png
Louc louderf_manila # Saturday, September 22, 2007 4:11:48 AM
Thank you guys for helping me out
Gracias mi amigos/amigas xD
Violeta Rosalesvioletisha # Saturday, September 22, 2007 4:19:51 AM
De nada amigo!
Dark FurieFurie # Saturday, September 22, 2007 10:35:59 AM
.Kite Geek # Saturday, September 22, 2007 10:42:55 AM
And, a 1.3mb gif about the size of the reply entry box will not load as a .gif in my blog? It ends up being converted to a .jpg img on the blog, while the image is still stored as a .gif... O,o
I am thinking it has a px size limit I must be over...
But, I can make the same .gif into a Flash movie... and it works and at any size... O,o
Dark FurieFurie # Saturday, September 22, 2007 10:47:50 AM
Louc louderf_manila # Saturday, September 22, 2007 11:46:07 AM
lolz furie,
brilliant kite xD
.Kite Geek # Saturday, September 22, 2007 2:00:07 PM
And I have yours also
Dark FurieFurie # Saturday, September 22, 2007 2:57:34 PM
Louc louderf_manila # Saturday, September 22, 2007 2:59:58 PM
-demiphonic # Saturday, September 22, 2007 3:27:20 PM
hmmm... I find I comment twice as much these days
Dark FurieFurie # Saturday, September 22, 2007 6:36:44 PM
Kite ya twonk.
.Kite Geek # Saturday, September 22, 2007 7:57:47 PM
Yeah I think the red is not cute enough...
-demiphonic # Sunday, September 23, 2007 2:48:47 AM
.Kite Geek # Sunday, September 23, 2007 9:20:00 AM
Louc louderf_manila # Sunday, September 23, 2007 9:11:13 PM
Jenngflladydeath # Tuesday, December 18, 2007 9:01:42 AM
/community/graphics/themes
If I have a gif or another graphic I want to use..Do I make a "directory/folder" in my files where I upload graphics in my account?
I hope I worded that right?
Thanks for help
-demiphonic # Thursday, November 27, 2008 7:13:26 PM
okay that didn't come out right
speaking of "Dummy"
I sound stupid don't I
you know!
Violeta Rosalesvioletisha # Thursday, November 27, 2008 7:29:46 PM
I think that would be:
pre , code {background:#FFFFFF; color:#000000;}Test it
-demiphonic # Thursday, November 27, 2008 8:00:51 PM
-demiphonic # Thursday, November 27, 2008 8:22:31 PM
hey I didn't envision this group for nuthin!
thanks violetisha
Violeta Rosalesvioletisha # Thursday, November 27, 2008 10:06:08 PM
I added your friend, but it seems to be offline
-demiphonic # Friday, November 28, 2008 2:18:08 AM
her CSS is basic so it will be a breeze to fix for someone like you
Thanks for everything girl