The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> not understanding
minidiapolis
post Mar 3 2007, 11:28 AM
Post #1


Serious Coder
*****

Group: Members
Posts: 437
Joined: 3-September 06
Member No.: 57



Hello, on http://www.cs.iupui.edu/~mjsmith/lounge.html why aren't the cds in italic and the artist bold?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
JamieHarrop
post Mar 3 2007, 11:41 AM
Post #2


Advanced Member
****

Group: WDG Moderators
Posts: 129
Joined: 25-October 06
From: West Yorkshire, UK
Member No.: 570



Because your CSS is within the <body> tag.

It should be between the <head></head> tags and be contained within <style type="text/css"></style>

Like this.

CODE
<head>
<style type="text/css">
.cd
{
   font-style: italic;
}
.artist
{
   font-weignt: bold;
}
</style>
</head>


This post has been edited by JamieHarrop: Mar 3 2007, 11:41 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 3 2007, 12:49 PM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,733
Joined: 9-August 06
Member No.: 6



Yeah, it shouldbe in head. But the reason most browsers don't use it is because it isn't in a style block at all. You already use an external style sheet. Put it there.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
minidiapolis
post Mar 3 2007, 01:43 PM
Post #4


Serious Coder
*****

Group: Members
Posts: 437
Joined: 3-September 06
Member No.: 57



Thanks so much smile.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 10:58 PM