Welcome Guest, Not a member yet? Register   Sign In
background for tables and TDs
#1

[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.
#2

[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
#3

[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.
#4

[eluser]piranha_swe[/eluser]
Thanks.

I was about to post code and some explanation, but the base_url suggestion was all I needed :-). Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB