TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
samanta
NA
429
135.7k
Align Div vertically middle
Apr 7 2014 3:24 AM
i want to align div vertically align middle.
i tried the following code but i getting some problem so please help me.
problem is when i add one more div after a main div, the subdiv position will get change.....
this is my code:
<body>
<div id="mainDiv" style="height:200px;width:600px; display:table;border:1px solid black">
<div " subDiv" style="padding-left:20px;padding-right:35px; height:20px; display:table-cell; vertical-align:middle" >
<div style=" float:left; width:200;"><span style="color:#C36">Do you like this?</span></div>
<div style=" float:right;width:30px;"><input type="submit" value="Yes"></div>
</div>
</div>
</body>
Reply
Answers (
1
)
compatibiliteits view in IE 11
Is it possible to use 2 or more classes in html text box or