Solved

HTML alignment

Posted on 2014-12-18
1
107 Views
Last Modified: 2014-12-19
Align HTMLHi ,

I have design a page . But the alignment is not coming correctly . I don't know why?

I changed the width size and all but it still show the above  check the attachment for more clarity

<td width="3%" class="label"><div title="analysis ">Status:
	</div></td>
<td width="24%" class="nonEdit"><div id="status"> &nbsp; <%= status %><input type="hidden" name="xx" value="<%= status %>"></div>
</td>

Open in new window



<tr>
<td width="7%" class="label"><div>xAT:</div></td>
<td width="21%" class="nonEdit"><div id="xAT"> &nbsp; <%= xAT %> <%= xxxx %></div></td>
</tr>

Open in new window

0
Comment
1 Comment
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 40508616
Create the table without the 'width' statements.  The browser will then automatically adjust the table for the size of the text.  The wrapping you are seeing is probably because there is not enough room for the elements to sit side by side.  If you later need to force % widths, you can add them back later.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question