You are not logged in.

Announcement

Forum database was corrupt and an old backup was restored as temporary replacement. Registrations closed until the database is recovered. Please ask questions using the Contact form

#1 30-07-2014 20:37:50

gregor616
Contributors
Registered: 24-07-2014
Posts: 4

Change the text color for one panels label only.

I am working on some darker tiles where I would like to set the label background color light and the text color dark.

Can this be done? It would mean having a property for label text color  Here is a sample label where the white text wont work.

$tile[] = array("type"=>"flip","group"=>0,"x"=>0,"y"=>1,'width'=>1,'height'=>1,"background"=>"#003366","url"=>"http://www.aderant.com/support-portal-login/",
    "img"=>"img/Applications/Aderant.png",    "text"=>"<h4 style='color:#FFF;'>Aderant Support Portal</h4>",
    "labelText"=>"Aderant","labelColor"=>"#FFFF99","labelPosition"=>"bottom"
    );

I would like to control the color of just this label.

Thanks

Offline

#2 30-07-2014 21:35:53

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Change the text color for one panels label only.

You can add a class to a label "label-color-black"
and use some css

.label-color-black .tileLabel{
color:black;
}


Btw: Topic moved from v3 -> v4

Offline

#3 30-07-2014 21:40:58

gregor616
Contributors
Registered: 24-07-2014
Posts: 4

Re: Change the text color for one panels label only.

Thanks and sorry I put it in the wrong section

Offline

Board footer

Powered by FluxBB