keep things in place

M

mcnewsxp

use a container for the two divisions.



<div id="container">

<div id="box1">text</div>

<div id="box2">text</div>

</div>

they are contained within a <div>.

<div id="contentwrap">
<div class="cright">
<div id="Div1">
<form id="form1" runat="server">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

</asp:ContentPlaceHolder>
</form>
</div>
</div>
<div class="cleft">
 
R

richard

i switched to using width percents and that seems to fix it.

if you define width with a specific px size that should work as well.
that is the width of the container, not the inner boxes.
if do not define the container size, the inner boxes will break anyway.
 
B

Beauregard T. Shagnasty

richard said:
if you define width with a specific px size that should work as well.
that is the width of the container, not the inner boxes. if do not
define the container size, the inner boxes will break anyway.

Only in your littleworld.
 
L

Lewis

In message said:
if you define width with a specific px size that should work as well.

This is terrible advice. One should never use pixels to define a
container. Pixel widths should be restricted to images.
 
D

dorayme

Lewis said:
This is terrible advice. One should never use pixels to define a
container. Pixel widths should be restricted to images.

Even if it were terrible advice in this case, it is not true that px
(not *pixel* btw) width should be restricted to images.
 
R

richard

This is terrible advice. One should never use pixels to define a
container. Pixel widths should be restricted to images.

kind of depends on the content of the container.
Personally, I use inches to define boxes.
But in some cases, pixels are necessary to achieve the desired effect.

While images have been matively and inherently, as well as historically,
been defined as being measured in pixels, that is not written in stone.

Now what exactly is a pixel? It is nothing more than another way to measure
something. How a pixel is defined on YOUR machine, is not a pixel on MY
machine.
 
R

richard

Only in your littleworld.

without a fixed size for the container, the shrinking of the window will
cause the container to collpase. If the inner boxes are defined, they will
thusly break.
 
J

Jonathan N. Little

richard said:
kind of depends on the content of the container.
Personally, I use inches to define boxes.

Inches (in), cm, mm, pt are really applicable to *printed* output. They
are linear units that are independent of the font size, so your "in" as
well as "px" will have the same issues when the user font and size are
changed, that is *generally* why for containers of text it is oftern
better to use something proportional to the font such as "em". However
it all depends on what your design criteria is.
 
L

Lewis

kind of depends on the content of the container.
Personally, I use inches to define boxes.

Yes, but you're ... well, YOU.
Now what exactly is a pixel? It is nothing more than another way to measure
something. How a pixel is defined on YOUR machine, is not a pixel on MY
machine.

Yes, rather the point of not using them, innit?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top