| | |
External CSS Sheet
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2007
Posts: 1
Reputation:
Solved Threads: 0
I'm not only new here but I am totally green at web design too. I'm trying to write a 3 page site for a homework assignment and I can't figure out what's wrong with my code.
All <p> tags are supposed to be indented 1.8 em, but I need to have a class named para1 where the first <p> tag on every page has no indention, and the font size is double. Here's what I wrote, but the <p> tag indention style overides the class element. Why?/
*my styles*/
body
{background-color=#999966
}
h1,h2,h3
{font-family: Comic Sans MS:sans-serif; font-style: italic; font-color: #445544; text-align: left
}
{font-family:
times new romam, sans-serif; color: black
}
p
{text-indent: 1.8em
}
para1
#para1:first-letter {float:left; font-size:200%; line-height:.5}
Thanks for your input.
All <p> tags are supposed to be indented 1.8 em, but I need to have a class named para1 where the first <p> tag on every page has no indention, and the font size is double. Here's what I wrote, but the <p> tag indention style overides the class element. Why?/
*my styles*/
body
{background-color=#999966
}
h1,h2,h3
{font-family: Comic Sans MS:sans-serif; font-style: italic; font-color: #445544; text-align: left
}
{font-family:
times new romam, sans-serif; color: black
}
p
{text-indent: 1.8em
}
para1
#para1:first-letter {float:left; font-size:200%; line-height:.5}
Thanks for your input.
You don't have a class named para1, you have an id named para1.
Put a period in front of an identifier to define a class.
Put a pound sign in front of an identifier to define an id.
You can't use an id, because only one tag in your web page can use a given id.
Put a period in front of an identifier to define a class.
Put a pound sign in front of an identifier to define an id.
You can't use an id, because only one tag in your web page can use a given id.
Daylight-saving time uses more gasoline
![]() |
Similar Threads
- help with tables, please help? (Site Layout and Usability)
- make css apply to a chunk of html (HTML and CSS)
- CSS syntax and commands (JavaScript / DHTML / AJAX)
- CSS in Dreamweaver (Site Layout and Usability)
- DIV Help! (HTML and CSS)
- Style properties are ignored by Mozilla browser... (ASP.NET)
- nice site (DaniWeb Community Feedback)
Other Threads in the HTML and CSS Forum
- Previous Thread: hide html code on my website
- Next Thread: Email hyperlink
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl






