Reply to topic
ASP.NET button issue...
eriweb


Joined: 06 Apr 2004
Posts: 68
Reply with quote
Hello all,

I have a little problem with asp:button and css with internet explorer. My code for the button looks like:
Code:
<asp:Button CssClass="search" id="btnSearch" runat="server" Text="Search"
OnCommand="btnSearch_Click" CommandName="search"></asp:Button>
.

the css "search" looks like:
Code:

.search
{
   position:absolute;
   top:132px;
   left:603px;
}
.

The problem is on Internet Explorer the button looks stretched out, and all I wanted the css to do is position the button on the page. On Firefox the button is positioned correctly and appears the way it should.

Any know what I am doing wrong here?

Thanks.
Jason101
Forum Regular

Joined: 14 Mar 2006
Posts: 548
Location: Harrisburg, PA
Reply with quote
Try setting the width in CSS

Code:

.search
{
   position:absolute;
   top:132px;
   left:603px;
   width: 150px;
}
eriweb


Joined: 06 Apr 2004
Posts: 68
Reply with quote
Hello Jason,

Thanks for your reply. I actually changed the position to relative from absolute and that worked, which I thought was interesting.
ASP.NET button issue...
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic