asp.net - Displaying a image in a div -
I'm having trouble displaying an image in a div element.
Div has a custom web control (a login control).
& lt;% @page language = "c #" auto eventWireUp = "true" codefile = "login.aspx.cs" inherit = "login" theme = "styles"%> & Lt;% @ Register src = "wucLogin.ascx" tag name = "wucLogin" tagprofix = "log"% & gt; & Lt ;; DOCTYPE HTML PUBLIC "- // W3C // DTT XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Head runat = "server" & gt; & Lt; Title & gt; Login & lt; / Title & gt; & Lt; Link rel = "stylesheet" type = "text / css" href = "app_Themes / styles / loginstyleshit.css" /> & Lt; / Head & gt; & Lt; Body & gt; & Lt; Form id = "form1" runat = "server" & gt; & Lt; Div id = "divlogin" & gt; & Lt; Log: wucLogin id = "WebUserControlLogin" runat = "server" / & gt; & Lt; / Div & gt; & Lt; / Form & gt; & Lt; / Body & gt; & Lt; / Html & gt; Everything looks like it should have an original login control with some basic layout and blue background.
But when I try to put a picture in the division, then I can not show it. I tried every possible path to the image, so I do not think I made an error there.
Basically I want login control to display it behind a photo (centered).
CSS for the div element (map image is a map in the root route:
#divLogin {background-image: url ('../ Images / Test 2 pages Background: Repeat: No repeat; Background-position: Center; Position: Absolute; Text-align: center; Up: 40%; Left: 52.8%; Width: 401px; Height: 123px; Margin- Top: -61,5 px; margin-left: -250px;} Best regards.
I use "divlog" on my page I do not see id .. just "divlogin" .. What could be the problem?
Comments
Post a Comment