Hi Linda,
You may be able to use an adjacent sibling selector to do it,
something like this:
.myclass + br {
display: none;
}
I don't think that will work in IE 6, but it seems to be supported in
most other browsers.
BR in general is a difficult tag to style, see for example:
http://stackoverflow.com/questions/899252/can-you-target-br-with-css
You might want to look into changing the source code itself using a
perl script or a tool like BBEdit that could process those 700 pages
in a few seconds.
Hope that helps,
-Paul Burney
http://www.burney.ws/
On Tue, Oct 19, 2010 at 5:24 PM, Linda Miller, DVM <[email protected]> wrote:
> Is there a way to select all <br> tags that follow a paragraph with a given
> class? i.e. <p class="myclass">This is a paragraph</p><br>
>
> There may be other <br> in the HTML so I cannot use this:
> br {display:none;}
> and I cannot delete all <br> tags.
>
> There are about 700 pages and I do not want to go through each of them to
> make sure if the <br> is needed or not. I do know that it is not needed
> following a paragraph with the class of "myclass".
>
> TIA,
> Linda
>
>
> ______________________________________________________________________
> css-discuss [[email protected]]
> 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/
>
______________________________________________________________________
css-discuss [[email protected]]
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/