Forum Moderators: not2easy

Message Too Old, No Replies

help

         

techsupport

8:09 pm on Nov 29, 2007 (gmt 0)

10+ Year Member



right i will try again then since i cant put a site link in here is the code i need some sort of css or div code it also needs to be resized automatically on different size monitors
here is the code i have used i did it in a table
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<table width="100%" border="0">
<tr>
<td><table width="80%" border="1" align="center">
<tr>
<td width="17%"><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p></td>
<td width="60%">&nbsp;</td>
<td width="23%" colspan="2">&nbsp;</td>
</tr>
<tr>
<td height="21" colspan="4">&nbsp;</td>
</tr>
</table>
<table width="80%" border="1" align="center">
<tr>
<td width="17%"><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p></td>
<td width="83%"><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p></td>
</tr>
</table>
<table width="80%" border="1" align="center">
<tr>
<td>&nbsp;</td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p></td>
</tr>
</table>
</body>
</html>

SuzyUK

3:01 pm on Dec 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I see tedster [webmasterworld.com] already explained that the monitor size does not make any difference it is screen resolution that is the issue with design sizes

CSS does not have a magic code that will detect resolution and display divs, fonts columns, sized accordingly. I think you would need to incorporate some sort of styleswitcher using Javascript - but note you can use styleswitchers on a table too

one suggestion might be best to design to a fixed width (pixels rather than percentages) that you and your boss are comfortable with, and then center the whole design if you want uniformity. If you do make that choice you can do it with a table too, there is no magic solution via CSS alone, at least from what I understand of your question

-Suzy

Xapti

6:06 pm on Dec 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can you elaborate more specifically what you want? Your statement was generic and didn't have very good grammar.

I think what you have there in your code right now is a "stretchy", or 100% width type of page design, which increases to fill the complete length of the browser. Considering that you're using tables, this may not look very good at larger screen displays.
Is that all you want, and just want more specifics, or what?

When it comes to screen size, that combined with resolution can be "detected" using the computer's DPI setting, which is oftentimes wrong. Points, Picas, centimeters, inches, etc. are units which are supposed to be the same as in real life... fixed PHYSICAL sizes. This is what you want to use if you actually want elements and/or text to be a size that can be measured with a real measuring stick, and stay constant. This is pretty impractical though, since not a whole lot of computers have their proper DPI set relative to their actual monitor size and resolution.

Lastly, realize that tables for layout is a non-semantic usage, meaning that you shouldn't really be using them for that situation. Not only is it not very flexible, but it's a lot of work to deal with when you have tables for layout. It's also oftentimes more markup and clutter. Tables should be used for tabular data. Things like floated divs should be used for designing site presentation.