Link to home
Start Free TrialLog in
Avatar of ilike-centre
ilike-centreFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How are the boxes / info_box_content size dictated by??

How are the boxes / info_box_content size dictated by??

i have been searching all over, and i just cant see where this is done - i ask, because i am writing a subdirectory (see question about arrays) and atm, i can link to my subdirectory box and it open, but it spans the fill center console.
I want to limit its size horizontally to 150px for example.

Do i place the info_box_content/php/array tag within a table and give it, its dimensional size? is this a good way of writing code??
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

You can use HTML tables and use "width=" to limit the width of a table or td field, but this is not considered a "best practices" approach to the issue.  Probably a better approach is to use CSS and let the style sheet designate the width of the fields.
<html>
<head>
<title>RAY_CSS_width.html</title>
 
<style type="text/css">
#thing { background-color:yellow; width:150px; }
</style>
 
</head>
<body>
<h3>Here is the CSS thing</h3>
 
<div id="thing">
This is the thing with its width limited to 150px by CSS.
</div>
 
</body>
</html>

Open in new window

What do you mean when you say "subdirectory"?  What kind of element is this?  A table?  A form element?  An iframe containing another page?  Please give us a bit of detail or perhaps code.
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
<QUOTE> limit its size horizontally to 150px for example</QUOTE>

I think I answered that one correctly!

Thanks, ~Ray
Avatar of ilike-centre

ASKER

thank you.