1 reply [Last post]
j3dj3d
j3dj3d's picture
Offline
newbie
UK
Last seen: 8 years 7 weeks ago
UK
Timezone: GMT+1
Joined: 2014-05-13
Posts: 2
Points: 3

Hi I would like to add a certain style to a list within a div named "details" and if possible for this not to be applied to other ul lists outside of that particular div. Is this possible without going through my site and adding a class to every ul I want to change within the "details" div. Thanks for any advice.

j3dj3d
j3dj3d's picture
Offline
newbie
UK
Last seen: 8 years 7 weeks ago
UK
Timezone: GMT+1
Joined: 2014-05-13
Posts: 2
Points: 3

Solution

Solution here:
http://ask.metafilter.com/81027/Applying-custom-CSS-styles-inside-a-DIV-without-touching-existing-tags

[div id="content"]
all your dynamically generated, marked up content
[/div]

Now all you need to do style for children of #content, thusly:

#content p {
font-size: 16px;
}

Thanks.