NetTalk Central

Author Topic: Problem with a browse field's custom CSS class not working  (Read 2479 times)

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Problem with a browse field's custom CSS class not working
« 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!
« Last Edit: June 14, 2010, 08:10:02 PM by Mike Grigsby »
Mike Grigsby
Credify Systems
Central Oregon, USA

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11182
    • View Profile
Re: Problem with a browse field's custom CSS class not working
« Reply #1 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

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Re: Problem with a browse field's custom CSS class not working
« Reply #2 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.
Mike Grigsby
Credify Systems
Central Oregon, USA

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Problem with a browse field's custom CSS class not working
« Reply #3 on: June 14, 2010, 11:51:30 PM »
Try putting it into your own CSS file and adding that to the webserver template.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11182
    • View Profile
Re: Problem with a browse field's custom CSS class not working
« Reply #4 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