?
Solved

How are the boxes / info_box_content size dictated by??

Posted on 2009-05-13
7
Medium Priority
?
210 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 111

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 111

Accepted Solution

by:
Ray Paseur earned 2000 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 111

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

800 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