473,394 Members | 2,100 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Positioning problem in IE6

I am setting a three column layout within an existing table. The table
uses previously devloped code so I am force to use it. I have the
following styles defined.

<code><!--Preventative insert so code does not get interpreted by mail
app -->
..c1
{
position:relative;
margin-left:0;
top:0;
float:left;
width:33%;
}
..c2
{
position:relative;
top:0;
width:34%;
}

..c3
{
position:relative;
top:0;
margin-right:0;
width:32%;
float:right;
}
</code>
After running my php script I get this resulting HTML
<code><!--Preventative insert so HTML does not get interpreted by mail
app -->
<html>
<head>
<title>Camco Project Database Maintenance</title>
<link rel="stylesheet" type="text/css" href="../camcostyles.css"/>
<link rel="stylesheet" type="text/css" href="timestyles.css"/>
</head>
<body> <table width="100%" class="body" cellspacing="0"><!-- Begin
Header -->
<tr>
<td class="top" valign="center" height="100" colspan="2"> <img
src="images/logo.gif"/>
</td>
</tr>
<tr>
<td class="bar">
Logged in as: <strong>Charles Russell</strong></td>
</tr>
</table><!-- End Header -->
<!-- Prepare navigation Layout -->
<table width="100%" class="body" cellspacing="0">
<tr>
<td class="left">

<span class="navhead">Timesheets</span><br/>
<a href="newts.php" class="leftnav">Enter New Timesheet</a><br/>
<a href="reviewts.php" class="leftnav">Review Timesheets</a><br/>
<a href="printts.php" class="leftnav">Print a Timesheet</a><br/>
<a href="modifyts.php" class="leftnav">Modify Timesheet</a><br/>
<a href="ProjMan.php" class="leftnav">Manage Projects</a><br />
<hr/>
<span class="navhead">Vehicle Maintenance</span></br>
<a href="vehinsp.php" class="leftnav">Inspection</a><br />
<a href="maint.php" class="leftnav">Maintenance</a><br/>
<a href="viewrec.php" class="leftnav">View Vehicle Record</a><br/>
<hr/>
<span class="navhead">User Management</span></br>
<a href="adduser.php" class="leftnav">Add User</a><br/>
<a href="removeuser.php" class="leftnav">Remove User</a><br/>
<a href="moduser.php" class="leftnav">Modify User Info</a><br/>
<hr/>
<span class="navhead">Vehicle Management</span><br/>
<a href="addvehicle.php" class="leftnav">Add a Vehicle</a><br/>
<a href="removevehicle.php" class="leftnav">Remove a Vehicle</a><br/>
<a href="modvehicle.php" class="leftnav">Modify a Vehicle</a><br/>
<hr/>
<span class="navhead">Reports</span><br/>
<a href="report.php" class="leftnav">Report</a><br/>
<hr/>
<a href="logout.php" class="leftnav">Log Out</a><br/>

</td><!-- End Navigation Pane -->
<td class="content" valign="top"><!-- Content Pane -->
<h1>Modify Project</h1><br />
<img src="images/blueline.gif" /><br/>
<form action="WriteProjData.php" method="post">

<link href='ProjForm.css' type='text/css' rel='stylesheet'>
<div class='c1'>Project Name <input type='text' value='Project 1'></div>
<div class='c2'>Manager
<select name=Manager value='0'>
<option value=1>Tim Valdepena</option>
<option value=2>Joe Bob</option>
<option value=8>Tim Temp</option>
<option value=10>able user</option>
<option value=11>Charles Russell</option>
</select></div>
<div class='c3'>District
<select name='district' value='1'>
<option value='1'>1</option>
<option value='0'>0</option>
<option value='2'>2</option>
<option value='3'>3</option>
<option value='4'>4</option>
<option value='5'>5</option>
</select></div>

</form>
</td>
</tr>
</table>
</html>
</code>

Other Styles Declared most not used here

<code><!--Preventative insert so code does not get interpreted by mail
app -->
/***************CamcoStyles.CSS********/
/*** Style sheet for www.camcosolutions.net ***/
/*Colors: #3333FF(Light Hard Blue), #6699FF(Light Azure Blue),
#FFFF00(Yellow) */

/********** General Styles **********/
html{
}

body{
margin:0;
}

/* Table */

/********** Content Panes **********/
td.top{
padding:0;
background-color:#6699FF;
text-align:center;
}

td.left{
background-color:#FFFF00;
color:#3333FF;
width:150;
border-right:thin solid #3333FF;
border-bottom:thin solid #3333FF;
font-weight:bold;
height:600;
vertical-align:top;
padding:5;
}

td.content{
background-color:white;
vertical-align:top;
padding:10;
}

td.bar{
color:#FFFF00;
background-color:#3333FF;
padding:2;
}

td.qual{
padding:10;
}

td.contacthead{
vertical-align:top;
text-align:right;
font-weight:bold;
}

/********** Headings **********/
td.head1{
font-size:larger;
font-weight:bold;
text-align:center;
}

td.head2{
font-weight:bold;
}

/********** Anchors **********/
a.leftnav:link{
text-decoration:none;
color:#3333FF;
}

a.leftnav:visited{
text-decoration:none;
color:#3333FF;
}

a.leftnav:hover{
color:black;
}

/********** Lists **********/
ul{
list-style-image:url(images/bullet.gif);
}

/********** Formatting **********/

..member{
font-style:italic;
}

table.sic{
border:thin solid #3333FF;
width:500;
}

tr.sichead{
background-color:#6699FF;
font-weight:bold;
}

tr.alt{
background-color:#FFFF33;
}

..navhead{
color:black;
}

/*** Style sheet for www.camcosolutions.net ***/
/*Colors: #3333FF(Light Hard Blue), #6699FF(Light Azure Blue),
#FFFF00(Yellow) */

/********** General Styles **********/
html{
}

body{
margin:0;
}

/* Table */

/********** Content Panes **********/
td.top{
padding:0;
background-color:#6699FF;
text-align:center;
}

td.left{
background-color:#FFFF00;
color:#3333FF;
width:150;
border-right:thin solid #3333FF;
border-bottom:thin solid #3333FF;
font-weight:bold;
height:600;
vertical-align:top;
padding:5;
}

td.content{
background-color:white;
vertical-align:top;
padding:10;
}

td.bar{
color:#FFFF00;
background-color:#3333FF;
padding:2;
}

td.qual{
padding:10;
}

td.contacthead{
vertical-align:top;
text-align:right;
font-weight:bold;
}

/********** Headings **********/
td.head1{
font-size:larger;
font-weight:bold;
text-align:center;
}

td.head2{
font-weight:bold;
}

/********** Anchors **********/
a.leftnav:link{
text-decoration:none;
color:#3333FF;
}

a.leftnav:visited{
text-decoration:none;
color:#3333FF;
}

a.leftnav:hover{
color:black;
}

/********** Lists **********/
ul{
list-style-image:url(images/bullet.gif);
}

/********** Formatting **********/

..member{
font-style:italic;
}

table.sic{
border:thin solid #3333FF;
width:500;
}

tr.sichead{
background-color:#6699FF;
font-weight:bold;
}

tr.alt{
background-color:#FFFF33;
}

..navhead{
color:black;
}

/**********Timestyle.css
table.timesheet{
border:thin solid #3333FF;
}

td.date{
font-weight:bold;
background-color:#6699FF;
}

td.timesheet{
vertical-align:top;
}

td.title{
font-weight:bold;
background-color:#6699FF;
}

table.review{
border:thin solid #3333FF;
}

table.day{
border:thin solid #3333FF;;
}

td.head{
background-color:#6699FF;
font-weight:bold;
}

table.maint{
border:thin solid #3333FF;
}

table.hours{
border-right:thin solid #3333FF;
}
</code>
Jul 21 '05 #1
4 2301
Charles Russell wrote:
I am setting a three column layout within an existing table. The table
uses previously devloped code so I am force to use it. [...]

So, what's the question?

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 21 '05 #2
jmm-list-gn wrote:
Charles Russell wrote:
I am setting a three column layout within an existing table. The table
uses previously devloped code so I am force to use it. [...]


So, what's the question?

I apologize I was racing the bank. The final select is set down one
space. I have tried top:-1em, margin-top, padding-top:-1em etc. And
thus far nothing I have tried works.
Jul 21 '05 #3
Charles Russell wrote:
jmm-list-gn wrote:
Charles Russell wrote:
I am setting a three column layout within an existing table. The
table uses previously devloped code so I am force to use it. [...]

So, what's the question?

I apologize I was racing the bank.


Did you win? ;)
The final select is set down one
space. I have tried top:-1em, margin-top, padding-top:-1em etc. And
thus far nothing I have tried works.


The float: right on the final element was pushing it down below the
levels of the others. Float all left, and put a <br> between each label
and the corresponding form element, and things look as I assume you'd
like them to.

While we're at it, you may want to mark up the labels *as* labels, and
use them as the containing elements for the form elements, rather than
the meaningless div clutter. So rather than

<div class='c1'>Project Name <input type='text' value='Project 1'></div>

Try

<label for="project" class="c1">
Project Name<br>
<input type="text" id="project" value="Project 1">
</label>

And set the label to display: block. You'll get the same visual effect
with far more semantic markup.

Cheers

P
Jul 21 '05 #4
Roland, you saved my day. Few days ago I posted a message asking for
help (and nobody answered...) and today I read your post about the div
tag and img having to be one after another without the return.
That's great, really thank you.
Ataru
Charles Russell <ce***@surewest.net> wrote in message news:<10*************@corp.supernews.com>...
jmm-list-gn wrote:
Charles Russell wrote:
I am setting a three column layout within an existing table. The table
uses previously devloped code so I am force to use it. [...]


So, what's the question?

I apologize I was racing the bank. The final select is set down one
space. I have tried top:-1em, margin-top, padding-top:-1em etc. And
thus far nothing I have tried works.

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Bryan R. Meyer | last post by:
Hello Everyone, The problem of browser resizing has become an issue for me. While redesigning my webpage, I set the left and right margins to be auto so that my content would be centered. ...
4
by: Jane Withnolastname | last post by:
I am trying to re-work an old site by replacing the html with css. On the main page, I have a logo image which I needed centred on the initial screen. I found the solution here:...
14
by: Harlan Messinger | last post by:
What am I not understanding about the definition of { position: absolute; }? "The box's position (and possibly size) is specified with the 'left', 'right', 'top', and 'bottom' properties. These...
6
by: rajek | last post by:
I posted a similar question yesterday, but didn't get an answer that resolved the issue. (Thanks to those who tried though.) The background: I've read in books and online that if you have one...
11
by: NS | last post by:
I am relativly new to css positioning and have a question regarding the display of a DHTML pop-up Here is the basic HTML I am using: <html> <head> <script language="JavaScript"> <!--
1
by: Charles Harrison Caudill | last post by:
with tables there is a clean and algorithmic way to organize things, but with css which is, once you get it working, much cleaner, I have to tweak and patch and hope and pray and curse before...
2
by: Rob R. Ainscough | last post by:
I'm slowly (very slowly) working my way thru the bizarre and sadistic world of control positioning in MultiViews (ASP 2.0). I came across this to help me explain (or attempt to anyway) why my web...
4
by: Alan Silver | last post by:
Hello, Having been a light reader of this ng for a few months now (after several years absence), I have noticed that absolute positioning seems to be considered a Very Bad Thing around here....
9
by: Bill Norton | last post by:
I've been experimenting with floats, positioning and offsets (top, left, etc.) to see what happens when you mix the properties together. All this may be old news to most of you, but it was...
6
by: Mark | last post by:
hi, i'm trying to position something in the top right corner of a container, but i can't seem to figure out how to get it working. here's the html <div class='thumb'><a href='image.jpg'><img...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.