The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Fri Aug 29, 2008 2:07 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jan 08, 2007 10:42 pm
Posts: 14
Hello to everyone!
I'd like to know if there is a simple way to remove the border around an image with hiperlink in content.
For example I've an image in the frontpage which link me to another page. With firefox the border has a color, with IE7 another color and with Oper there is no border. I'd like that every browser hide the border around the picture..there is a way to set it in the window I use in the back-ent to upload picture? I don't know a lot about css.. There is a simple way?
Thanks to everyone!
fab

I attached how the picture looks like with different browser


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Fri Aug 29, 2008 2:48 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Wed Apr 04, 2007 8:54 pm
Posts: 2755
Location: Driggs, Idaho
Hi,

Try this

a:link img {border:none;}
or
a img {border:none;}

_________________
Joomla Website Design / CS-Cart Website Design
http://writenowdesign.com


Top
 Profile  
 
PostPosted: Fri Aug 29, 2008 3:52 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jan 08, 2007 10:42 pm
Posts: 14
thanks a lot, but where have I to insert this code?


Top
 Profile  
 
PostPosted: Fri Aug 29, 2008 5:33 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Wed Apr 04, 2007 8:54 pm
Posts: 2755
Location: Driggs, Idaho
Hi,

Insert the code into /templates/your-template/css/template_css.css

Also, you might want to look for a:link and see if there is a rule for border in there.

_________________
Joomla Website Design / CS-Cart Website Design
http://writenowdesign.com


Top
 Profile  
 
PostPosted: Fri Aug 29, 2008 6:15 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Mon Oct 01, 2007 7:54 pm
Posts: 60
Location: USA, Michigan
As a quick, individual basis solution, set the boarder of the image to 0 (zero) when inserting it on your page. If you leave the boarder value blank, it will still add a 1 pixel boarder around the image sometimes. And sometimes you won't see a boarder until you do add a link to it. The code would look similar to this
Code:
<img src="sample.jpg" width="180" height="180" border="0" />

_________________
~~~TechWild~~~


Top
 Profile  
 
 Post subject: Solved!
PostPosted: Sat Aug 30, 2008 8:14 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jan 08, 2007 10:42 pm
Posts: 14
Thanks a lot! It was easier than I thought!
Before change the code I tried to set border value to 0 in the "insert/edit image" window of joomla. The border disappeared!
Thanks a lot
Fab


Top
 Profile  
 
PostPosted: Mon Sep 01, 2008 11:51 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Wed May 09, 2007 7:53 am
Posts: 235
Location: Bangalore, Karnataka, India
in CSS file add "template_css.css"

img{
border-width:0px;
}

then therez no need to add again and again

_________________
Thank you.

Regards,
Sanjay Beedi
Senior Software Engineer,
Construe Solutions, Hyderabad, AP, India
http://www.construesol.com/


Top
 Profile  
 
PostPosted: Thu Jul 28, 2011 8:54 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Jul 28, 2011 8:40 am
Posts: 3
hi, i know this thread has been years ago..

but im having the same problem with my joomla 1.7 that i just downloaded. in the template, there's 2 css files. one is template.css and another is template_rtl.css for the default beez_20 template.

i have tried to find and insert the codes, and tried to edit borders to 0 but i still get the annoying border on the top menu link image that i have been testing on my site. can anyone help?

www.scruffiez.com

im just playing with different options so i can get my site running.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 



Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group