Page 1 of 1

Create BBCode, image resized down

Posted: 31 Jul 2010, 11:33
by Chalong
Hi Coders,

atm I'm creating a BBCode for Twitter with an userbar picture to link to twitter.
Here is the picture:
Image
and here ist the HTML-replacement:

Code: Select all

<a href="http://twitter.com/{IDENTIFIER}"><img src="./images/twitterfollowme.gif" width='50' border="0" /></a>
The original size of the pic is 350x19px but my board resizes it to 50x3px.
resized_tw.png
How can this happen and how do I get it work fine ?

Re: Create BBCode, image resized down

Posted: 31 Jul 2010, 11:36
by Chalong
Oh my gosh,

i got ir work because i missed a "3" within width. :lol:

Re: Create BBCode, image resized down

Posted: 31 Jul 2010, 17:36
by cisco007
in order to have this xhtml strict you need to add the alt="*" to the image tag!, and I am not sure the border="0" is strict either!
I am saying this for us that like xhtml strict code!

Re: Create BBCode, image resized down

Posted: 31 Jul 2010, 20:21
by KukY13
cisco007 ยป 31 Jul 2010, 17:36 wrote:in order to have this xhtml strict you need to add the alt="*" to the image tag!, and I am not sure the border="0" is strict either!
I am saying this for us that like xhtml strict code!
Well, you should better align with HTML 5, which does not require 'alt' attribute.
'border' isn't allowed, as all styling should be done only using CSS. Allowed exceptions are attributes that specify the size of the element.

Re: Create BBCode, image resized down

Posted: 31 Jul 2010, 20:40
by cisco007
it's up to you what you want you use i guess!