Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Adding a image border to an image not updating on live site???


Reply


5 Posts   1355 Views

Avatar
TF-35Lightning

Community Member, 137 Posts

26 March 2010 at 6:46pm

Edited: 31/03/2010 6:53pm

Hi all,

When in the admin and I right click on an inserted image and go to "insert/edit image", I enter a value into the border box and click the update button, and the border is shown around the image in the admin.

So I click Save and publish and load up the live site but unfortunatley their is no border around my image!

I have tried flushing the ?flush=1 also.

Here is my css for my img tag under the layout.css

img {
vertical-align:top;
}

Any help would be great

Avatar
TF-35Lightning

Community Member, 137 Posts

29 March 2010 at 5:39pm

Anyone know?

I've also just tried a default installation of SS on 2.36 and 2.4 and it behaves the same way (no border is shown on the images even though you set them in the admin). (Default black candy template and tutorial template being used)

Avatar
TF-35Lightning

Community Member, 137 Posts

31 March 2010 at 6:50pm

Another user had the exact same issue but also no one replied.
http://www.silverstripe.org/archive/show/226730#post226730

I have gone into fire bug and checked the coding of the image, heres what it shows.

<img widt="231" height="172" src="assets/myphoto.jpg" alt="" title=""/>

As you can see there is no coding for a class etc, even though the border is applied to the image in the admin.

Any help would be great

Avatar
kmartinsson

Community Member, 5 Posts

4 May 2010 at 2:56am

I too have this problem. It seems like a handful of people on this forum have bumped into this problem but unfortunately no-one seems to have resolved the issue.

Did you have any luck with this since your last post?

Avatar
kmartinsson

Community Member, 5 Posts

4 May 2010 at 3:16am

I'm running Silverstripe 2.3.5 with the Blackcandy theme. No borders even though I've removed "borders : none;" in typography.css in the ".typography img" section.

Any suggestions appreciated.