Jump to content

nexprograms

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

nexprograms's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I think it cannot be done by css nakedly, but can be done using some trick by using some css class. Set css class to every next 3 alphabet li. <style type="text/css"> ul { list-style: none; } li { float: left; width: 20px; text-align: center; margin-left: 2px; } .down { clear: both; } </style> <ul> <li>A</li> <li>B</li> <li>C</li> <li class="down">D</li> <li>E</li> <li>F</li> <li class="down">G</li> <li>H</li> <li>I</li> <li class="down">J</li> <li>K</li> <li>L</li> <li class="down">M</li> <li>N</li> <li>O</li> </ul>
  2. Hi.. I found the solution:- When a div being float styled, vertical-align will not work. To solve this problem, we need to add inner div for every div. Then set the inner div to style width, height, vertical-align, and display as write below. <div style="float:left;width:50px;height:50px;text-align:center;"><div style="width:50px;height:50px;vertical-align: middle;display:table-cell;">hello</div></div>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.