Solved

How are the boxes / info_box_content size dictated by??

Posted on 2009-05-13
7
209 Views
Last Modified: 2013-12-12
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
Comment
Question by:ilike-centre
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
7 Comments
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 24384418
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
 
LVL 8

Expert Comment

by:Bobaran98
ID: 24391061
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
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 24564251
@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
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 24638201
<QUOTE> limit its size horizontally to 150px for example</QUOTE>

I think I answered that one correctly!

Thanks, ~Ray
0
 

Author Closing Comment

by:ilike-centre
ID: 31581253
thank you.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

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.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

726 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