Skip navigation

Type selectors:

em {color: blue;}

This rule will select any <em> element on the page and color it blue anywhere in the document

Class selectors:
if you have:

<p class="big">This is some <em>text</em></p>

then the rule:

.big { font-size: 110%; font-weight: bold; }

will select that line because it selects every class=”big”.

To be more specific we can combine class and type selectors:

div.big { color: blue;}

this would select only class big objects with type <div>

You can also assign and element multiple classes:
<p class="big indent">
.big { font-weight: bold; }
.indent { padding-left: 2em; }

both these rules apply to the html line above.

Try to style all elements in a <div> the same way instead of abusing the class selector

ID selectors:
You can also select html objects by ID, eg:

<p id="navigation"> navigation stuff </p>
#navigation { width: 12em; color: #333; }

Descendant selectors:

p em {color: blue; }

this would select all em elements that are descendent’s of p even if they are grandchildren of p and not direct descendants.

Child selectors:

div.em { color: blue; }

only select the children of div that are em…

Universal selectors:

* {color: blue;}

these select all elements regaurdless of their position in the document tree

Adjacent siblings selectors:

These have applications if you have a series of headers that you want to use multiple times together. If you have <h2> and <h3> elements in the same section then you create a style using:

h2 + h3 {margin: 1em;}

This targets any h3 that follows and h2.

Attribute selectors:

img[src="icon.gif"] { border: 1px solid #000; }

Targets all images with the source “icon.gif”.

References:

http://css.maxdesign.com.au/selectutorial/selectors_type.htm

Advertisements

I will be using this blog to update my learnings in the world of the web, courses, and simple hack I’ve come to learn. Currently, I am running Ubuntu 10.04 on a Dell XPS M1330. This summer I am researching with professor Valeria Betacco, working on the FunSAT research project through the SURE program at U of M. The following posts are my learnings.

-Jkrez

John Krzemien
John Krzemien

Near the straight of Gibraltar is a place called Gibraltar. I know, crazy right? Who would have thought…. Anyways it’s near the most southern point in Spain.

A Big Rock, Another Big Rock, And Two Bodies of Water!

Yes, so anyways the straight of Gibraltar, right. If you have ever had the feeling you’ve been to another country and didn’t know you actually crossed any real boarder, then you know how it feels to cross over to Gibraltar. We walked right on over. They may have had a guy looking to make sure you had some type of document resembeling a passport in your hand, but maybe not.

This place was so small that in order to land a plane in their airport they had to stop all the traffic on the main street for about 5 minutes while the plane took its time and rolled on in. It was a very cute place.

After a short walk through the city we reached the cable car and took it to the top of the rock. The wind was strong, making for a nice breeze, and the sun was particularly bright that day reflecting off the water giving and doubly illuminating effect. From up there, we could see Algeciras, a Spanish port, a great view of the Atlantic coming in to the straight, a nice view of Africa (which I’ll talk more about in a later post), and a good look at the Mediterranean. It was a pretty cool view.

Then the monkeys. There were a lot of monkeys and they liked people. And they liked to attack people. My mother was obsessed with them and grabbed my camera and started to take pictures. I wandered off in awe of the view, admiring Africa, longing to go back, and explore more of all it’s untouched lands. But, maybe another time. Ishallah.

There were monkeys everywhere up there. They like to attack people!

There were monkeys everywhere up there. They like to attack people!

After hours of walking and wandering around the top of Gibraltar, seeing caves, old bunkers, and picaresque views, We had fish and chips and this very good English pub. But my stomach didn’t quite agree with all the grease, which it continued to be upset for the few days following.

We left Gibraltar in the same strange way that we entered, just waving our passport looking documents and some official who waved us by from afar. Whoo! I’m in Spain again. Ahh much better.

Oh, The EnglishThat’s all for now, Morocco’s coming up next!

-Jkrez

As many of you have heard, I have just completed a month and a bit of Study abroad in Sevilla, Spain. It was an amazing time and I have some memories that I’d like to share. (It would have been nice to blog in Spain, but lack of a computer and an Internet connection prevented that)

So where to start? How about the most recent first, that means Pamplona and La fiesta de San Fermin (El encierro) or the name as made famous by Hemmingway’s “The Sun Also Rises”.

Pamplona: Upon arrival at the train station we were instantly immersed in a sea of people dressed in white and red. [People wear white pants and white shirts, and sport red scarf’s tied like around their necks with red sashes tied around their waists. Everyone one wears this same outfit for the entire duration of the festival]. We took a taxi and got as close as we could to our hotel, but because of the sheer number of people, many of the streets downtown were closed. We pushed the rest of our way through the sea of white and red people until reaching our hotel.

Now, if you’re one who likes to party you would be blown away by this festival. Imagine a small Spanish city that has a large number of bars in proportion to people. Now imagine streets lined with people packed so tight you can’t move, flowing out from one bar over to the next. Add music to every corner, lots of beer, sangria, and tapas. Add hourly parades each with their own music and style from each of the different “counties” if you will, of Pamplona. Add bull runnings every morning, bull fights every afternoon, and fireworks [these are srsly the best fireworks I have ever seen] every night. Oh, also there are bands that march around while loudly playing music with the sole purpose to wake people up every morning at 6am, or to keep them partying. Repeat that for 10 days. That’s the Fiesta de San Fermin. You get very little sleep.

The pictures below should give you a taste of the dress and chaos of the city:

Thirsty?

COMMENTS Yea, this dude was at a bullfight we saw in Pamplona.  He was everyone’s best firend.

One of the Many Parades!

COMMENTS
I got stuck in this parade for a while and just wandered around the city learning that region’s songs! So much fun

The Pamplona Attire

COMMENTS This was one of my favorite parts of the Fiesta de San Fermin. Everyone wore the same thing!

Run!!

COMMENTSWe watched from a balcony on Calle Mercedes, which had the most dangerous turn of the whole run. There were paramedics set up there before the race started.

That’s about it for now! More to come!

Caio!

This week Ben and I road up sabino canyon and enjoyed a nice view at the top as seen in the photo withe the bikes. It was a nice cloudy day which helped block most of the sun allowing an enjoyable ride!

We forgot about soccer one hour after after our ride and were pretty exhausted for the short 5 v 5 soccer game that followed.

Tony might remember this lesson from experience.  So may Ben...

Tony might remember this lesson from experience. So may Ben...

>.<
This is the Top!
Only 3.7 Miles up hill!

Only 3.7 Miles up hill!

We actually just repeated this trip today before I had a chance to upload this post!  But this time I decided to bike to Ben’s house, about 4 miles.  We met up with litte Pabts and the three pack of us took a nice, but quick trip to the top. Along the way we saw many Mexican families heading down the mountain from their picnic lunches/dinners.  We also saw a Armenator, a good friend from our airsoft days back in sophomore year. On the way back down we saw this one Foothills girl who’s was characterized by the fact that at on pep rally she chugged a blender-ed McDonald’s happy meal the fastest… Yea, That’s all we could remember about her. It was a very popular day for the canyon.

All in all I ended up biking around 16 Miles.  Not bad for workout #2 for today!

Jkrez logging off

Hoping this works and you all can see beautiful a beautiful Tucson sunset!

Ahh, yes. The famous first words. Hello World!

I have just started this Blog as a kind of experiment. I have linked it to my blackberry so I can update it with pictures and events of life. Blogging seems like it’s a modern version of scrap booking, though a little more public depending on how you use it.

Expect regular updates with pictures! :)

That’s all for now!