background for tables and TDs - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: background for tables and TDs (/showthread.php?tid=21659) |
background for tables and TDs - El Forum - 08-17-2009 [eluser]piranha_swe[/eluser] Hi. How do you define URLs for background images for tables and TDs in CI? I need it for a view with lots of html code. Cant find it in the CI-guide. background for tables and TDs - El Forum - 08-17-2009 [eluser]Neeraj Kumar[/eluser] can you post som sample code, it'll help a lot btw in you php files, you can surely use site_url() and base_url() functions to create a path background for tables and TDs - El Forum - 08-17-2009 [eluser]jedd[/eluser] If you're using the HTML Table Class, then you can look at the $this->table->set_template() function to provide some class= bits, then do the rest in CSS (of course). If you're avoiding the HTML Table Class - and there's nothing wrong with that - then you'd just put the relevant class/id/CSS calls in your view snippets that produce the HTML. There's nothing particularly special about doing this with CI, if you're making your own HTML. background for tables and TDs - El Forum - 08-17-2009 [eluser]piranha_swe[/eluser] Thanks. I was about to post code and some explanation, but the base_url suggestion was all I needed :-). Thanks! |