Hello!
I would like to make my div text vertical-aligned:middle, but I cannot do
this.
I want to have divs float to left:
<div style="width:80 0pt;background-color:#909ED5;" >
<div style="width:80 0pt;" class="menu1">
<div class="menu"
onMouseOut="bg_ color_change('d iv_szkolenia',' #4D5780');txt_c olor_change('di v_szkolenia','# ffffff');"
onMouseOver="bg _color_change(' div_szkolenia', '#B5CBE3');txt_ color_change('d iv_szkolenia',' $000000');"
id="div_szkolen ia">
<a href="http://localhost/soft_pl/soft/index.php?menu_ typ=test"
class="a_szkole nia">
Szkolenia BHP
</a>
</div>
<div class="menu"
onMouseOut="bg_ color_change('d iv_testy','#4D5 780');txt_color _change('div_te sty','#ffffff') ;"
onMouseOver="bg _color_change(' div_testy','#B5 CBE3');txt_colo r_change('div_t esty','$000000' );"
id="div_testy" >
<a href="http://localhost/soft_pl/soft/index.php" class="a_szkole nia">
Testy
</a>
</div>
</div>
css files looks like this:
body {font-size:14px; font-family: Arial, Helvetica, sans-serif;
font-weight: normal;text-align:center;}d iv {font-size:14px; font-family:
Arial, Helvetica, sans-serif; font-weight: normal;}td {font-size:14px;
font-family: Arial, Helvetica, sans-serif; font-weight: normal;}
div#div_szkolen ia {background-color:#4D5780;c olor:#ffffff;}d iv#div_testy
{background-color:#4D5780;c olor:#ffffff;}d iv#div_linki
{background-color:#4D5780;c olor:#ffffff;}d iv#div_administ racja
{background-color:#4D5780;c olor:#ffffff;}
a.a_szkolenia {color:#ffffff; font-weight:bold;top :50%;}div.menu
{width:100pt;he ight:20pt;float :left;backgroun d-color:#4D5780;c olor:#ffffff;}d iv.menu1
{width:100pt;he ight:20pt;backg round-color:#4D5780;c olor:#ffffff;}
I have tried to do this by display and vertical-align:center, but it doesn`t
work.
Could you help me?
Thank you in advance
M.
I would like to make my div text vertical-aligned:middle, but I cannot do
this.
I want to have divs float to left:
<div style="width:80 0pt;background-color:#909ED5;" >
<div style="width:80 0pt;" class="menu1">
<div class="menu"
onMouseOut="bg_ color_change('d iv_szkolenia',' #4D5780');txt_c olor_change('di v_szkolenia','# ffffff');"
onMouseOver="bg _color_change(' div_szkolenia', '#B5CBE3');txt_ color_change('d iv_szkolenia',' $000000');"
id="div_szkolen ia">
<a href="http://localhost/soft_pl/soft/index.php?menu_ typ=test"
class="a_szkole nia">
Szkolenia BHP
</a>
</div>
<div class="menu"
onMouseOut="bg_ color_change('d iv_testy','#4D5 780');txt_color _change('div_te sty','#ffffff') ;"
onMouseOver="bg _color_change(' div_testy','#B5 CBE3');txt_colo r_change('div_t esty','$000000' );"
id="div_testy" >
<a href="http://localhost/soft_pl/soft/index.php" class="a_szkole nia">
Testy
</a>
</div>
</div>
css files looks like this:
body {font-size:14px; font-family: Arial, Helvetica, sans-serif;
font-weight: normal;text-align:center;}d iv {font-size:14px; font-family:
Arial, Helvetica, sans-serif; font-weight: normal;}td {font-size:14px;
font-family: Arial, Helvetica, sans-serif; font-weight: normal;}
div#div_szkolen ia {background-color:#4D5780;c olor:#ffffff;}d iv#div_testy
{background-color:#4D5780;c olor:#ffffff;}d iv#div_linki
{background-color:#4D5780;c olor:#ffffff;}d iv#div_administ racja
{background-color:#4D5780;c olor:#ffffff;}
a.a_szkolenia {color:#ffffff; font-weight:bold;top :50%;}div.menu
{width:100pt;he ight:20pt;float :left;backgroun d-color:#4D5780;c olor:#ffffff;}d iv.menu1
{width:100pt;he ight:20pt;backg round-color:#4D5780;c olor:#ffffff;}
I have tried to do this by display and vertical-align:center, but it doesn`t
work.
Could you help me?
Thank you in advance
M.
Comment