homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

Image Border
img border

 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;

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

the border is not appear.



 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"/>


 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]/>


 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