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:
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.
- 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.
- try refrain inline css. there's lot can put in serpate css file. allow keep overview.
- i'd advise against using deprecated
center
tags. - avoid stacking
br
tags. if need lot of whitespace, usemargin
instead. - 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.
- additionally, post relevant code case.
- if relevant, in case, post a fiddle or working example can see what's going wrong. playground debug, if will.
Comments
Post a Comment