Solved

How are the boxes / info_box_content size dictated by??

Posted on 2009-05-13
7
204 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 108

Expert Comment

by:Ray Paseur
Comment Utility
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
Comment Utility
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 108

Accepted Solution

by:
Ray Paseur earned 500 total points
Comment Utility
@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 108

Expert Comment

by:Ray Paseur
Comment Utility
<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
Comment Utility
thank you.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
how to get responsive video to always be centered 15 33
Menu Inconsistent 3 18
CSS Divs in Safari 3 17
HTML CSS 7 13
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
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 count occurrences of each item in an array.

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now