Page 1 of 1

News Module span tags and css problem

Posted: Fri Dec 31, 2004 4:55 pm
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 ...

News Module span tags and css problem

Posted: Wed Jan 05, 2005 12:04 am
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...