Customize image to fit into the page

Sometimes the image width is bigger than the page. So to set it in pagelayout , alter the attributr size like this:

style=”width: 890px;” will control this.

<asp:Image ID=”Banner” runat=”server” ImageUrl=”~/images/bannar.jpg”

                            style=”width: 890px; vertical-align:middle; text-align:center;” />

The div width = 900px . I put the image width less so that the div will not increase.


About Ahmed

Software craftsman, programmer, developer, system/business analyst, DBA and PM.
This entry was posted in ASP.NET, Programming and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s