CodeIgniter Forums
CSS AND JAVASCRIPT QUESTION - 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: CSS AND JAVASCRIPT QUESTION (/showthread.php?tid=53951)



CSS AND JAVASCRIPT QUESTION - El Forum - 08-15-2012

[eluser]Beginers[/eluser]
Hi All,

Is it advisable to use INTERNAL css and javascript code?
What are some possible risk if i use INTERNAL css and javascript coding?


Regards,
Beginers

<!-- TRYING HARD -->


CSS AND JAVASCRIPT QUESTION - El Forum - 08-15-2012

[eluser]Aken[/eluser]
And "internal" means what?


CSS AND JAVASCRIPT QUESTION - El Forum - 09-12-2012

[eluser]Unknown[/eluser]
[quote author="Aken" date="1345093368"]And "internal" means what?[/quote]

Put css code into style tag.

like this

Code:
<style type="text/css">
.textcontrols a.post_thanks_button  {
background: url(images/buttons/post_thanks.png) no-repeat transparent right;
padding-right: 20px;
}

</style>



CSS AND JAVASCRIPT QUESTION - El Forum - 09-14-2012

[eluser]amine.elharrak[/eluser]
Hello,
Yes you can but it's spaghetti code. Smile


CSS AND JAVASCRIPT QUESTION - El Forum - 09-14-2012

[eluser]rogierb[/eluser]
Brrr, no don't use that. Ever.

Is you use proper css and js files they can get cached. Besides you cannot reuse it, which is the beauty of css.



CSS AND JAVASCRIPT QUESTION - El Forum - 09-14-2012

[eluser]amine.elharrak[/eluser]
Yes rogierb i'm with you