Jump to content
php.lv forumi

HR


*jancis38*

Recommended Posts

Nostailoju velreiz, tagad strādā (nez kapēc uz IE nerādija, rādija defaulto.)

Nu un atšķirība ir labi redzama:

FF:

FF.gif

IE:

IE.gif

CSS:

hr {
background: #DDD;
padding: 0px;
margin-top: 5px;
height: 1px;
color: #DDD;
border: 0px;
}

Edited by *jancis38*
Link to comment
Share on other sites

<table width="930" cellspacing="0" cellpadding="0" border="0"><tr>
<td width="500" valign="top"><div class="title">Jaunumi</div>
</td><td class="linija"></td>
<td width="215" valign="top"><div class="title">---</div></td><td class="linija"></td>
<td width="215" valign="top"><div class="title">---</div></td>
</tr></table>

CSS:

table {
margin-bottom: 2px;
position: relative;
list-style: none;
display: block;
padding: 0px;
border: 0px;
top: 0px;
}

Link to comment
Share on other sites

linija:

.linija{
background: url(img/linija.gif) repeat-y;
border-bottom: 2px solid #FFF;
border-right: 2px solid #FFF;
border-left: 2px solid #FFF;
border-top: 2px solid #FFF;
padding: 1px;
}

title:

.title {
text-align: center;
font-size: 15px;
font-weight: bold;
padding-bottom: 1px;
border-bottom: 1px solid #DDD;
}

Link to comment
Share on other sites

neenu liiniju ar <hr /> shitaa smuki var dabuut, straadaa populaarajos visos browseros:

 

<hr style="height:0;border:0;border-top:1px solid #F90" />

 

Varbuut pameegjini no css to table {} defineejumu vispaar iznjemt, tur nav faktiski neviena vajadziga defineejuma. Un to class="title" tu faktiski vari liekt ieksh <td> un <div> dzeest aaraa.

Link to comment
Share on other sites

×
×
  • Create New...