Image Border

Winter sport ecommerce template for Joomla with VirtueMart support
GK User
Thu Sep 13, 2012 11:44 am
Hi guys, How can I create a nice image border using CSS on the images placed in the articles in this template?
User avatar
Expert Boarder

GK User
Fri Sep 14, 2012 8:34 am
Hi,

In general you should use code similar to this:
Code: Select all
#gkMainbody article p img {
border: 1px solid #e5e5e5;
display: inline-block;
padding: 3px;
}
User avatar
Administrator

GK User
Fri Sep 14, 2012 8:36 am
Thanks for this!
Which is the best file to include this code in?
User avatar
Expert Boarder

GK User
Fri Sep 14, 2012 8:41 am
The best will be the css/joomla.css file at the end.
User avatar
Administrator

GK User
Fri Sep 14, 2012 8:53 am
I've done this, but as you can see, nothing has changed: www.creative-designs.co.za/tala
Is there something else I can try? or add the code into a different file perhaps?
User avatar
Expert Boarder

GK User
Fri Sep 14, 2012 9:30 am
I've created a code for images in the article - you need as I see also the same border for the images in the custom HTML module - please replace the selector:

Code: Select all
#gkMainbody article p img {


for:

Code: Select all
.custom p img,
#gkMainbody article p img {
User avatar
Administrator

GK User
Fri Sep 14, 2012 9:40 am
Hi, I have tried this and it's still not working.
I am going to PM you the access details.. Maybe I am doing something wrong :(
User avatar
Expert Boarder

GK User
Fri Sep 14, 2012 10:36 am
Sorry I cannot connect via FTP but the following code added in the joomla.css file:
Code: Select all
.custom p img,
#gkMainbody article p img {
border: 1px solid #e5e5e5;
display: inline-block;
padding: 3px;
}


must works, because I've added it in the Chrome Dev Tools and the borders appeared around the images.
User avatar
Administrator

GK User
Fri Sep 14, 2012 10:45 am
If the IP address is not working for the FTP, try using creative-designs.co.za
Sometimes we have problems with the IP address.. but i've checked my connection, and I am able to connect with creative-designs.co.za :)
User avatar
Expert Boarder

GK User
Fri Sep 14, 2012 1:05 pm
I've moved the code fragment to the template.css file and now it works fine.
User avatar
Administrator

GK User
Sat Sep 15, 2012 10:25 am
YAYAYAY!!! You are amazing! It looks great!
Thank you so so so much!!!
:))
User avatar
Expert Boarder

GK User
Fri Sep 21, 2012 2:10 pm
Hi Dziudek,

Remember you assisted me with adding the border to my images?
For some reason the border isn't added to the images within the website. It only shows the border on the images on the homepage (they are within modules)..
See this page as an example http://www.creative-designs.co.za/tala/ ... -mphahlele

Is there another line of code I need to add somewhere to put borders around every other image too?
User avatar
Expert Boarder

teitbite
Sat Sep 22, 2012 8:04 am
Hi

Try add this code to override.css file:

Code: Select all
#gkMainbody .articleContent p img {
    border: 1px solid #E5E5E5;
    display: inline-block;
    padding: 3px;
}


Remember to have using of override enabled in template settings.
User avatar
Moderator

GK User
Tue Sep 25, 2012 8:15 am
Thank you so much!!
User avatar
Expert Boarder

teitbite
Tue Sep 25, 2012 11:48 pm
Hi

No problem. Glad I could help.
User avatar
Moderator


cron