Ed Goodson wrote: > Hi all, > I have the same name for different deivs whihc works but when it validates > it fails. What is the way around this without having to call my divs > different names? I suppose I could change the names and just add their name > to the div style but there must be work around! Thanks > > <div id="details"> > <h2>Online news</h2> > </div> > > <div id="details"> > <h2>Online video</h2> > </div> > >
An id may only be used once on the same page. Assign a class, rather than an id, and you can use the same name as many times as you need on the same page. css .details {...} html <div class="details"> <h2>Online news</h2> </div> <div class="details"> <h2>Online video</h2> </div> ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/