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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicate CSS entries

Status
Not open for further replies.

Jimdeb03

IS-IT--Management
Dec 10, 2002
89
US
I'm making changes to an existing website that uses CSS. Once sheet has duplicate Selector entries that has identical declarations

#Content {
...
...
}

#Content {
...
...
}

So I'm thinking why have two so I remove one (either one)where parts of the page blows chunks. Replace it and everything's ok.

There's also in the CSS...
#Content fieldset {
...
...
}

Can someone help explain why this occurs for having duplicate entries seems awfully confusing to code.
thanks,



 

Jim,

I can't think of any reason removing one of the duplicate entries would make the page layout break.

Can you post the CSS and HTML code?

Dan
 
If everything in those duplicate sections are exactly the same then removing one would not make an impact. However, if there's differences then the second one would add to and/or overwrite those in the first.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top