Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting DIVs from a style sheet

Status
Not open for further replies.

VBGuy2112

Programmer
Feb 19, 2002
58
US
Is it possible to create a div tag and then format the font size from a style sheet? I created one below:

<div id=&quot;mnuMenu&quot;>
<a href=MainMenu.asp target=fraMain>Main Menu</a><br>
<a href=FacilityInformation.asp target=fraMain>Facilities</a><br>
<a href=ClientInformationSR.asp target=fraMain>Clients</a><br>
<a href=ChangePassword.asp target=fraMain>Password</a><br>
<a href=Reports.asp target=fraMain>Reports</a><br>
</div>

I'd like to be able to refer to the DIV ID in a style sheet like I would a class and change all the hyperlinks to have the same font size, etc.

Any suggestions?

Thanks in advance!
 
in your <style></style> tags or in your stylesheet:

<style>
#mnuMenu
{
font-size:12pt;
font-weight:bold;
font-family:times new roman;
font-style:italic;
}
</style>

Hope this helps,
Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top