Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi Guys,

 

Im just not sure how to do this..Dont know its simple or tough..

 

I want to place an image (banner) at top of the login page, and the length should be equal to the page size..I cant seem to get it done..

 

So i place using the <asp:image> tag. and i specify a certain height and width..

 

I want the width to cover the whole page length actually, but not sure how..

 

Currently if i put with 1800px, and view the page using smaller resolution, i see scrollbar..

 

So, how do i make the image fit on the page exactly as the resolution user is using so that i dont need any scrollbar and can cover the full width of the page?

 

Thank You

Posted
You could use a table or a div tag and set the width dynamically using javascript and the availWidth function of the DOM. Then set the height to whatever you want. And using the background-image style attribute to set the image itself.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...