Solved

How are the boxes / info_box_content size dictated by??

Posted on 2009-05-13
7
206 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
  • 3
7 Comments
 
LVL 109

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 109

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 109

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
write screen output to text file 21 47
How to position loader with CSS 3 41
PHP curl issue VERBOSE output 18 46
What does != "" mean in programming 8 35
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

831 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