div problem

  • drion
  • Born
  • Born
  • drion
  • Posts: 1

Post 3+ Months Ago

Hello!
I`ve got one simple question. Divs are not verticaly align.
how can i change this?

Thanks
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England

Post 3+ Months Ago

simple
the css is
Code: [ Select ]
#divName{clear:both;}
  • Satwant
  • Graduate
  • Graduate
  • User avatar
  • Posts: 127
  • Loc: Bangalore

Post 3+ Months Ago

is this works
Code: [ Select ]
#divName{vertical-align:middle;}
  • Silvertongue62
  • Novice
  • Novice
  • User avatar
  • Posts: 31

Post 3+ Months Ago

drion wrote:
Hello!
I`ve got one simple question. Divs are not verticaly align.
how can i change this?

Thanks



Can you show us a sample page or sample script? I have read the question 5 times and I dont know what answer will apply to what situation you are having. For example are you using style sheets to control this or are you using just html with basic tables?

Here is an example. But then again I don't know if this will work for you because your question isn't very clear.

Code: [ Select ]
<table border="1" cellspacing="2" cellpadding="2" width="100%">

<tr>
    <td>Left</td>
    <td>Right</td>
</tr>
<tr>
    <td>Lower Left</td>
    <td>Lower Right</td>
</tr>
</table>
  1. <table border="1" cellspacing="2" cellpadding="2" width="100%">
  2. <tr>
  3.     <td>Left</td>
  4.     <td>Right</td>
  5. </tr>
  6. <tr>
  7.     <td>Lower Left</td>
  8.     <td>Lower Right</td>
  9. </tr>
  10. </table>


But then again if you need that centered you can do that with the most basic of codes. Now moving on to Dividing. Here is another piece of script for you. Depending on what you do with the numbers depends on your final result.

Code: [ Select ]
<div id="menus" style="position: absolute; top:200; left:100; height:300; width:400; z-index:submenus;"></div>
This can also be used inde of tables as well as outside of tables.

So back to your question, What are you working with?

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 41 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.