1
Answer

master page problem

Ask a question

i created one css file like this..

#searchbox {

position:relative;

height:130px;

padding:5px 0.5em;

margin-bottom:-2px;

background-color:#FFFFFF;

background-image: url(Images/searchbox_bg.jpg);

background-repeat: no-repeat;

}

#rightcolumn{

float:right;

width:152px;

margin-left:-3px; /* IE 3px display bug fix (in conjunction with the rule following below)*/

background-color:#EBE4DE;

font-size:0.9em;

}

and i created one master page with searchbox .it is located in rightcoloumn.

code is...

<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>Untitled Page</title>

</head>

<body>

<form id="form1" runat ="server" >

<div id="rightcolumn">

<div id ="searchbox" >

<asp:Label runat="server" ID="lblSearch" AssociatedControlID="txtSearch" style="display:none;" Text="Search:" />

<asp:TextBox runat="server" ID="txtSearch" AccessKey="s" TabIndex="50" Columns="10" />

<asp:Button runat="server" ID="btnSearch" Text="Search" CausesValidation="false" AccessKey="c" TabIndex="51" />

</div>

</div>

<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

</asp:ContentPlaceHolder>

</form>

</body>

</html>

i can run this application ,but the search box is located in left side.

but my requirement is right column

plz help me how ican put search box in rightcoloumn using css........


Answers (1)