jquery - Is this a CSS bug or am i completely blind? -


during build of project making page edit user credentials. now, when added css in stylesheet(as did html) refused work! not border, not margins not anything!

this html.

 <div id="editdetails" class="textfont userpagewindows">         <p style="font-size:50px;">edit credentials</p>       5125125125125<br /><br /><br /><br /><br /><br /><br />          5125125125125  </div> 

css

div.userpagewindows{ min-width:80%; margin-top:190px; border: solid; border-top:none; border-bottom:5px; } 

the border messed up. doing wrong? i've done tens of times in project far, , worked perfect!

this how border looks in div:

this happens

as opposed picture, how should http://jsfiddle.net/qepybz9l/

this seems work desired? fiddle.

function showwindow(el) {     $("#userpagemain").fadeout(150);     $(el).fadein(150); } 

concerning css issue, there's lot note.

  1. you want display border, have defined border on specific elements. problem elements empty , subsequently don't have width and/or height means border applied element won't visible either. can see illustrated here.
  2. try refrain inline css. there's lot can put in serpate css file. allow keep overview.
  3. i'd advise against using deprecated center tags.
  4. avoid stacking br tags. if need lot of whitespace, use margin instead.
  5. when posting code stackoverflow, keep in mind tongue of communication english - if we're not native speakers, is international language. means ought translate code @ least bit it's clear want do.
  6. additionally, post relevant code case.
  7. if relevant, in case, post a fiddle or working example can see what's going wrong. playground debug, if will.

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -