• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

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??
0
ilike-centre
Asked:
ilike-centre
  • 3
1 Solution
 
Ray PaseurCommented:
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

0
 
Bobaran98Commented:
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.
0
 
Ray PaseurCommented:
@angelIII: IIRC there was a related question with a lot of table-related markup. I think taken together they might have made sense. ~Ray
0
 
Ray PaseurCommented:
<QUOTE> limit its size horizontally to 150px for example</QUOTE>

I think I answered that one correctly!

Thanks, ~Ray
0
 
ilike-centreAuthor Commented:
thank you.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now