HTML/XHTML

HTML/XHTML

Rockbomb
Dog fucker (but in a good way now)

2009 Nov 14 • 2045
Ok so I'm having an issue. I'm doing an assignment, and one thing I need to do is add a style to the document that removes the underline from all the links on the page.
Here's what my style tag looks like:
html code
<style type="text/css">
body {font-family: sans-serif; margin: 20px; margin-bottom: 150px}
h2 {margin-top: 0px}
img {border-width: 0px; display: block}
#summary {width: 600px; margin-bottom: 20px}
#links {text-decoration: none}
</style>



What am I doing wrong?


Edit: Nevermind, my textbook is a piece of shit and told me to put "#links" instead of "a".
Imma leave this truck up though, cuz I might need some help later in this assignment/class.
 
 
 
2010 Jul 1 at 16:56 UTC — Ed. 2010 Jul 1 at 17:01 UTC
the_cloud_system
polly pushy pants

2008 Aug 1 • 3081
-6 ₧
THANK GOD NO ONE SAW THIS
I drink to forget but I always remember.
 
 
 
2010 Jul 1 at 17:08 UTC
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 14 • 2045
Ok I need more help, here's a link to my project files so you can use them to see wtf I'm talking about
http://www.speedyshare.com/files/23211746/case3.rar

Ok it says
Quote:
Currently the online)map div container does not display the longs peak map. Add the following style to the embedded style sheet to display the map:
Set the width of the container to 600 pixels wide by 294 pixels high.
Add a 1-pixel-wide solid black border to the container.
Apply the Ipmap.jpg graphic file as the background image.
Use relative positioning to place the container on the page. Set the top and left coordinates to 0 pixels.



Is this something I need to be doing in the style tags in the header section, or within the div tag with the id "online_map"?


You know what? Fuck my textbook, google is my new reference for anything I need to know.
 
 
 
2010 Jul 1 at 17:21 UTC — Ed. 2010 Jul 1 at 17:37 UTC
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 14 • 2045
HELP HELP HELP!
Ok, so before I say what wrong, I needa say that I have like 2 hours to finish this project before I need to leave for a week. I wanted it done yesterday but I've been waiting on a response from my instructor and she apparently is a complete bitch.

So on to the problem.
Quote:
6. For each link nested within a notes class element, apply the following style:
Set the width and height of the link to 20 pixels.
Hide any content that overflows the boundary of the link.
Set the background color to blue and the font color to white.
Set the z-index value to 1.


Ok, so I did this... BUT IT WONT WORK

Here's my file if you wanna download it http://www.speedyshare.com/files/23223547/longs.html

Or here is a pastebin if you just wanna take a look
http://pastebin.com/4kbAKtvA


If someone could help, it would be awesome for you to add me on messenger ;) theblackhatter@hotmail.com



Edit: I'm referring to line 24, btw. The one that starts out ".notes a {........."
 
 
 
2010 Jul 2 at 15:32 UTC — Ed. 2010 Jul 2 at 15:35 UTC
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 14 • 2045
Well, I need to leave, so I went and found someone else's that they did and stole it... hopefully I get away with it. If not, its my teachers fault for neglecting to read anything that I send her

Anyway, I would still like an answer to my last post, as I AM actually trying to learn this shit. I just won't have it figured out in time for me to submit in MY work for the grade xD
 
 
 
2010 Jul 2 at 16:43 UTC
SuperJer
Websiteman

2005 Mar 21 • 6666
It appears that
.notes a {width: 20px; height: 20px; overflow: hidden; background_color: blue; font_color: white; z_index: 1}

should be
.notes a {width: 20px; height: 20px; overflow: hidden; background-color: blue; color: white; z-index: 1}

for starters.

The width and height declarations probably have no effect because your a elements are display:inline by default. So you may also want to add display:block
 
 
 
2010 Jul 8 at 01:26 UTC — Ed. 2010 Jul 8 at 01:29 UTC
SuperJer
Websiteman

2005 Mar 21 • 6666
Rockbomb said:
Edit: Nevermind, my textbook is a piece of shit and told me to put "#links" instead of "a".
Imma leave this truck up though, cuz I might need some help later in this assignment/class.


If it really says that then I believe it is the worst textbook outside of the Hitler Youth program. And even that is a close call.
 
 
 
2010 Jul 8 at 01:31 UTC — Ed. 2010 Jul 8 at 01:32 UTC
SRAW
Rocket Man

2007 Nov 6 • 2525
601 ₧
You've never seen my ict textbook, it from 10 years ago so it says that a large hard disk has up to 10gb of space!
Free Steam Games
 
 
 
2010 Jul 8 at 01:39 UTC
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 14 • 2045
Thanks SJ... still getting used to this css shizzle.

Also:
 
 
 
2010 Jul 8 at 15:58 UTC
SuperJer
Websiteman

2005 Mar 21 • 6666
Well that's not necessarily wrong.

css code
#links a:hover {color:red;}
does this:



(div with id=somethingelse)
A link to AOL.COM


It is a really bad name for an ID though.
 
 
 
2010 Jul 9 at 01:40 UTC — Ed. 2010 Jul 9 at 01:41 UTC
Rockbomb
Dog fucker (but in a good way now)

2009 Nov 14 • 2045
You know what?
Now that I look at it... it is an id
But, yeah... thats a retarded id name, and is very confusing... especially for a book thats supposed to teach you stuff xD
 
 
 
2010 Jul 9 at 01:58 UTC
Page [1]