html - CSS applied to asp:Label under placeholder1 only working in design view? -


all other parts of css work fine in browser. part works in design view. tried adding cssclass , clearing cache , running on ie, chrome , firefox. nothing seems work.

<asp:label id="lblwelcometext" runat="server" text="welcome" cssclass="welcome">  .welcome{     display: inline-block;     text-align:center;     /*border-bottom: 5px solid #f0f1e7;*/     color: #ffe9da;     font-family: sans-serif;     font-size: 68px;     font-weight: normal;     /*line-height: 48px;     margin: 0 0 26px;     padding: 0 0 24px;*/ } 

  1. make sure closed </asp:label> tag.
  2. check rendered html code using inspect element tool of browser, markup must : <span id="lblwelcometext" class="welcome">welcome</span>
  3. when inspect element using tool can check css applied element. can install firebug firefox browser inspect element. please update problem detail.

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -