1
tedsmith
Image Border Not Showing Up - Easy HTML
  • 2005/11/1 18:26

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


This driving me nuts...all I want is a border to show around my images in a page I've created for WF-Channel.

My code is as follows :

<img src="/modules/wfchannel/html/mypicture.gif" alt="My ALT value" border="2" height="280" width="250">


but does the black border show? No. I've tried it as border=2, border='2' and border="2" but nothing seems to make a diffence. This applies in both IE and FF.

Any ideas?

2
bb2120
Re: Image Border Not Showing Up - Easy HTML
  • 2005/11/1 19:39

  • bb2120

  • Not too shy to talk

  • Posts: 179

  • Since: 2005/7/6 1


There might be a css statement preventing borders from showing in one of XOOPS's millions (there are about 15 when I looked) of css files.
Have a look through the core, module and the relevent theme files, checking each .css file for a statement that prevents borders.

I'm no expert in css, but I reckon the code that would prevent borders from showing around images would be something like this:

img
{
border: none;
}



Tell me how you get on

3
bb2120
Re: Image Border Not Showing Up - Easy HTML
  • 2005/11/1 19:41

  • bb2120

  • Not too shy to talk

  • Posts: 179

  • Since: 2005/7/6 1


Also, if you have Mozilla Firefox and the web developer toolbar, you could check to see if the CSS really is the problem by turning off CSS from within the toolbar

4
TottoBG
Re: Image Border Not Showing Up - Easy HTML
  • 2005/11/1 21:51

  • TottoBG

  • Not too shy to talk

  • Posts: 111

  • Since: 2005/8/18


tedsmith, try giving the border property by css, like this:
<img src="/modules/wfchannel/html/mypicture.gif" alt="My ALT value" style="border: 2px solid" height="280" width="250" />

5
tedsmith
Re: Image Border Not Showing Up - Easy HTML
  • 2005/11/2 11:33

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Thanks to all, but TotoBG - that has worked a treat! Thanks. I now have a nice border round both my pics. Jolly good

6
TottoBG
Re: Image Border Not Showing Up - Easy HTML
  • 2005/11/2 21:09

  • TottoBG

  • Not too shy to talk

  • Posts: 111

  • Since: 2005/8/18


feels good when work is successfully done
it should work fine because it overrides the global styling rules you got somewhere in your css files. And in such case, when a css rule is on, giving just an htmp property (like border='2') to your img tag does not works because it's less powerful than the css properties. :)

Login

Who's Online

81 user(s) are online (31 user(s) are browsing Support Forums)


Members: 0


Guests: 81


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits