homepage Welcome to WebmasterWorld Guest from 54.234.2.88
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

    
Image Border
img border
Fedail




msg:4127219
 9:36 am on May 5, 2010 (gmt 0)

i tried to many times to do it but it is still not working
how can i fix it



.gimg{max-height:300px; margin:20px; padding:10px;
border-color:Blue;
border-style:solid;
border-width:5px;


<asp:Image ID="Image1" runat="server" CssClass="gimg"/>



the border is not appear.

 

gablu




msg:4127234
 9:58 am on May 5, 2010 (gmt 0)

Hi Fedail,

You could try this out, though it is an internal css.

I think you have missed the imageurl part in the tag.

<asp:Image ID="Image1" runat="server" imageurl="images/someimage.jpg" style="border: 5px solid blue"/>

limbo




msg:4127244
 10:29 am on May 5, 2010 (gmt 0)

Also validate your HTML. If it's xHTML strict you'll need a space before the trailing slash e.g.

<asp:Image ID="Image1" runat="server" CssClass="gimg" [space here]/>

Fedail




msg:4127284
 11:47 am on May 5, 2010 (gmt 0)

it is working here but in the stylesheet not working
i didn't face this problem before

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved