News Module span tags and css problem

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm
Location: Saskatchewan - Canada

News Module span tags and css problem

Post by Greg »

With the latest daily build the News Module uses only span tags instead of div tags. Now if I use any css to format the news items I get a jumbled mess in both IE6 and Moz 1.7.5

To be more specific ... If I apply any style to the 'cms-module-news' class I get the mess. I can style all the other elements as long as I don't apply any style to cms-module-news.

The use of span and div tags with this module seems to flip-flop and I'm thinking there was a reason for the span only tags but cannot recall what it was.

This is definitely no programming priority ...
Greg
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

News Module span tags and css problem

Post by Ted »

This was because a div inside a div without any only tag in between is not valid xhtml.

You can use a display:block for news tag, and then display: inline for the date and title spans to get the same look.

I'm going to see if I can tweak if a little more to be both valid and easy to style...
Post Reply

Return to “Modules/Add-Ons”