- Posts: 10
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- I don´t want picture frame when I insirt picture to an article
I don´t want picture frame when I insirt picture to an article
- Ole Vagnkjær
-
Topic Author
- Offline
- New Member
Less
More
15 years 3 months ago #79082
by Ole Vagnkjær
I don´t want picture frame when I insirt picture to an article was created by Ole Vagnkjær
How can I remove the frame around all picture insirted in articles and how do I remove the bacground color in the picture frame ?
Please Log in or Create an account to join the conversation.
- d.k.shukla
-
- Offline
- Senior Member
Less
More
- Posts: 78
15 years 3 months ago #79083
by d.k.shukla
Replied by d.k.shukla on topic I don´t want picture frame when I insirt picture to an article
Hi
you mean 1 px border around images, to remove border you will require to edit k2.css file
Please use firebug a firefox extension to edit css file and customization
you mean 1 px border around images, to remove border you will require to edit k2.css file
Please use firebug a firefox extension to edit css file and customization
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
Less
More
- Posts: 955
15 years 3 months ago #79084
by Simon Wells
Replied by Simon Wells on topic I don´t want picture frame when I insirt picture to an article
Hi Ole,
Just to explain a bit more. If you dont know, Firebug is an add on for Firefox, which will help you debug css and html.
To edit the k2.css, you will need to be able to access your server files.
K2.css is located in /components/com_k2/css.
Take a look around line 146 for span.itemImage img {border:1px solid #ccc;padding:8px;}
Let us know if you need any further help.
Regards,
K2Joom.com
Just to explain a bit more. If you dont know, Firebug is an add on for Firefox, which will help you debug css and html.
To edit the k2.css, you will need to be able to access your server files.
K2.css is located in /components/com_k2/css.
Take a look around line 146 for span.itemImage img {border:1px solid #ccc;padding:8px;}
Let us know if you need any further help.
Regards,
K2Joom.com
Please Log in or Create an account to join the conversation.
- Ole Vagnkjær
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 10
15 years 3 months ago #79085
by Ole Vagnkjær
Replied by Ole Vagnkjær on topic I don´t want picture frame when I insirt picture to an article
Thank´s alot, I will download firebug and look over k2.css
Best regards to you guy´s
Best regards to you guy´s
Please Log in or Create an account to join the conversation.
- William
-
- Offline
- New Member
Less
More
- Posts: 3
14 years 10 months ago #79086
by William
Replied by William on topic I don´t want picture frame when I insirt picture to an article
It would be nice to see a real answer here. I have tried removing the border. I have edited the line as mention, but it does nothing to remove the border around images.
This is something the admin should have an option to have a border or not have a border. Too many clients that do and don't want something. options....options....options.
Please - where do we remove the border at.
k2.css line 146 doesn't work.
William
This is something the admin should have an option to have a border or not have a border. Too many clients that do and don't want something. options....options....options.
Please - where do we remove the border at.
k2.css line 146 doesn't work.
William
Please Log in or Create an account to join the conversation.
- William
-
- Offline
- New Member
Less
More
- Posts: 3
14 years 10 months ago #79087
by William
Replied by William on topic I don´t want picture frame when I insirt picture to an article
This is what I found:
in line 156 - div.itemFullText img {padding:2px;margin:4px;background:#fff;border:none;}
change to border none as I have done and the border around your image will go poof! :)
You will see a bunch of borders throughout the code, which is crazy.
William
in line 156 - div.itemFullText img {padding:2px;margin:4px;background:#fff;border:none;}
change to border none as I have done and the border around your image will go poof! :)
You will see a bunch of borders throughout the code, which is crazy.
William
Please Log in or Create an account to join the conversation.
- Kei Fujita
-
- Offline
- New Member
Less
More
- Posts: 5
14 years 10 months ago #79088
by Kei Fujita
Replied by Kei Fujita on topic I don´t want picture frame when I insirt picture to an article
I'm using png images with rounded transparent corners on my site so the white borders (white background and grey border) were pretty bad looking. Here was the solution.
Go into your k2.css file and do a search for this:
div.itemFullText img {padding:2px;margin:4px;background:#fff;border:none;}
Delete this part:
background:#fff
Everything should be fine now. Actually I may have changed the part about border:none awhile back so you may have to change that to none as well.
My advice is to get CSS Edit. This software solved my problem it 2 minutes. I think it's only for Mac though.
macrabbit.com/cssedit/
William said:This is what I found: in line 156 - div.itemFullText img {padding:2px;margin:4px;background:#fff;border:none;} change to border none as I have done and the border around your image will go poof! :)
You will see a bunch of borders throughout the code, which is crazy.
William
Go into your k2.css file and do a search for this:
div.itemFullText img {padding:2px;margin:4px;background:#fff;border:none;}
Delete this part:
background:#fff
Everything should be fine now. Actually I may have changed the part about border:none awhile back so you may have to change that to none as well.
My advice is to get CSS Edit. This software solved my problem it 2 minutes. I think it's only for Mac though.
macrabbit.com/cssedit/
William said:This is what I found: in line 156 - div.itemFullText img {padding:2px;margin:4px;background:#fff;border:none;} change to border none as I have done and the border around your image will go poof! :)
You will see a bunch of borders throughout the code, which is crazy.
William
Please Log in or Create an account to join the conversation.
- polo
-
- Offline
- New Member
Less
More
- Posts: 4
14 years 6 months ago #79089
by polo
Replied by polo on topic I don´t want picture frame when I insirt picture to an article
I am using K2 2.4.1 and have been looking in the k2.css for the
div.itemFullText img {padding:2px;margin:4px;background:#fff;border:none;} to get rid of all 1 px borders
Different post points to different line numbers?
When I do a find with div.itemFullText img I get line 194 and div.itemFullText img {} - so how do I edit that?
Seems like a lot of people would like to know how to get rid of the borders!
div.itemFullText img {padding:2px;margin:4px;background:#fff;border:none;} to get rid of all 1 px borders
Different post points to different line numbers?
When I do a find with div.itemFullText img I get line 194 and div.itemFullText img {} - so how do I edit that?
Seems like a lot of people would like to know how to get rid of the borders!
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 6 months ago #79090
by william white
Replied by william white on topic I don´t want picture frame when I insirt picture to an article
Firebug will point you to the line number in your css file if you inspect and find the element your looking for.
Also, most editors will find it quickley with ctrl-F
in the latest svn its on line 194
Also, most editors will find it quickley with ctrl-F
in the latest svn its on line 194
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- I don´t want picture frame when I insirt picture to an article