![]() |
Setting images within CSS
===============================================
How do you set images in CSS... for instance I created a gif for bulleted lists and I would like to use CSS to replace the bullet with the gif... Code:
LI { However this does not appear to work with x-cart... I'm thinking it has something to do with these{ }... any ideas? --------------------------------------------------------THANKS------------------- :) HYPERDELICIOUS =============================================== =============================================== |
...
Are you putting it into the tpl your using it in or did you put it in the CSS file that x-cart already has? If your using it in the tpl you could also try putting {literl} {/literal} in the beginning and end.
|
Editing skin1.css
===============================================
I placed the following code into skin1.css... therefore I am editing the Style Sheet x-cart came with... Code:
LI { any ideas... how to get this to work? --------------------------------------------------------THANKS------------------- :?HYPERDELICIOUS =============================================== =============================================== |
I would imagine that you would have to use the full url to the bullet image.
Quote:
See if that works |
...
Try this, Put this into your CSS File...
Code:
ul { list-style-image: url("li_bullet.gif"); } And then to list set it up like so... Code:
<ul>[*]Your text[/list] |
Thanks
===============================================
Thanks Shan, I had tried the absolute URL and it did not work... but checking your code against mine I realized I forgot a '/ ' :oops: ... my code actually looked like this... Code:
http://www.mysite.com/xcart/skin1/imagesil_bullet.gif Human error... anyway do you think it will screw with the SSL key since the image is being pulled from http:// rather than https://? If so do you think I should change the URL of the image to https://? -------------------------------------------------------THANKS-------------------- :) HYPERDELICIOUS =============================================== =============================================== |
yeh, just set it from hte https sever and it will be fine for both then
|
Thanks
===============================================
Thanks again Shan... I appreciate your help/advice. --------------------------------------------------------------THANKS------------- :) HYPERDELICIOUS =============================================== =============================================== [/b] |
If you set the url as relative to the skin1.css file this will work.
ie. LI { list-style-image : url(images/li_bullet.gif); vertical-align : middle; color : #40445E; font-weight : bold; } |
All times are GMT -8. The time now is 01:12 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.