div problem

  • drion
  • Born
  • Born
  • No Avatar
  • Joined: Dec 15, 2010
  • Posts: 1
  • Status: Offline

Post December 15th, 2010, 8:12 am

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

Thanks
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 15th, 2010, 8:12 am

  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 09, 2008
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England
  • Status: Offline

Post December 15th, 2010, 10:25 am

simple
the css is
Code: [ Select ]
#divName{clear:both;}
^__^
  • Satwant
  • Graduate
  • Graduate
  • User avatar
  • Joined: Dec 27, 2010
  • Posts: 126
  • Loc: Bangalore
  • Status: Offline

Post December 28th, 2010, 5:42 am

is this works
Code: [ Select ]
#divName{vertical-align:middle;}
  • Silvertongue62
  • Novice
  • Novice
  • User avatar
  • Joined: Dec 30, 2010
  • Posts: 31
  • Status: Offline

Post December 31st, 2010, 9:58 am

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 110 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.