NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Mike Grigsby on June 14, 2010, 08:08:24 PM

Title: Problem with a browse field's custom CSS class not working
Post by: Mike Grigsby on June 14, 2010, 08:08:24 PM
Never had this problem on NTWS 4, but in 5, when I put a custom CSS class on a field in a browse, it doesn't take. I put it in the Custom CSS Class, as 'myHeader' and it shows on the HTML code for the <td>, but it seems like it is getting stomped on by the table.BrowseTable class. I've tried moving it around the .css file, but still no joy. Any ideas? Thanks!
Title: Re: Problem with a browse field's custom CSS class not working
Post by: Bruce on June 14, 2010, 08:50:57 PM
What's in your css for this bit Mike?
ie what bit is being overiden?
font-size? color? etc...

Cheers
Bruce
Title: Re: Problem with a browse field's custom CSS class not working
Post by: Mike Grigsby on June 14, 2010, 09:42:44 PM
I have a number of these, but this is one:

mrg-blog-text {
 font-family: Lucida Grande,Lucida Sans,Arial,sans-serif;
 font-size: 11px;
 font-weight: normal;
 color: #333;
 margin: 5px 0px 5px;
// border-color: #4F3B4F;
 border-top: 0px solid #888;
 border-left: 0px solid #888;
 border-bottom: 3px solid #4F3B4F;
 border-right: 0px solid #888;
 padding: 0.2em;
 border-spacing: 0px;
 width: 600px
}

It is in the netweb.css file, but I also tried it in the all.css for the heck of it.
Title: Re: Problem with a browse field's custom CSS class not working
Post by: kevin plummer on June 14, 2010, 11:51:30 PM
Try putting it into your own CSS file and adding that to the webserver template.
Title: Re: Problem with a browse field's custom CSS class not working
Post by: Bruce on June 15, 2010, 12:29:20 AM
Hi Mike,

I added that to a browse column in an example app, and inspecting with firebug it seems to be ok.

As kevin noted though , you shouldn't directly edit the all.css or netweb.css. It's better to put your styles in your own css, and then merge them into all.css using the technique described here;
http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=957.0

If you're still struggling post an example app, with the web folder you are using.

Cheers
Bruce