DaveSW 15 Master Poster

Very bad ;-)
Some browsers may actually listen to you and not bother to expand it, so I would suggest you simply set the size of your input element instead...

<INPUT TYPE="file" NAME="photo" style="width: 50px;">

Then you won't have to worry about setting the cell width or what size the upload element will be!

Regards
Dave

SergioQ commented: Helpful, without the snootiness that comes on a lot of newsgroups. Which is why I am growing to like DaniWeb +1
DaveSW 15 Master Poster
MartyMcFly commented: Many thanks, MMF +1
DaveSW 15 Master Poster

No worries - the embed/src stuff is the worst part of web design if you ask me.

DaveSW 15 Master Poster

The problem appears to be that the menu uses javascript to change the cell id onMouseOver and onMouseOut. This means that the background is specified in both. IE clearly thinks it's two different images. (SM_c becomes SMcs)

I suggest you take all the references to the dkback.gif out of the SM_c and SM_cs items, and add a containing div around the menus which will then have the background in it. That won't change on mouseover, and should solve your problem.

If you want me to work on it further, can you zip up a html page with the menu on it, and the associated images and css files? It would be awkward to make a new stylesheet for it without the ability to test it...

DaveSW 15 Master Poster

It appears that for a div, IE in standards mode (with a strict or transitional doctype) adds padding and margins to the width.
In quirks mode, without a doctype or with an incomplete doctype, it subtracts them.

Mozilla adds them all the time.

I don't think this is the same for IE5 though. Maybe I'll test it out later.
Try testing this page with and without a doctype:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Test page</title>
<style type="text/css">
<!--
#first {
  border: 1px solid #000;
  width: 200px;
}
#second {
  border: 1px solid #000;
	padding: 50px;
  width: 200px;
}
-->
</style>
</head>
<body>
<div id="first">&nbsp;</div>
<div id="second">&nbsp;</div>
</body>
</html>

This means that for an image in IE in quirks mode, padding is simply ignored.

DaveSW 15 Master Poster

Is this something like what you want?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Page title</title>
<style type="text/css">
<!--
#tl {
  background: url(tl.gif) 0 0 no-repeat;
	border: 1px solid #000;
}
#tr {
  background: url(tr.gif) 100% 0 no-repeat;
}
#br {
  background: url(br.gif) 100% 100% no-repeat;
}
#bl {
  background: url(bl.gif) 0 100% no-repeat;	
	height: 300px;
}
-->
</style>

</head>
<body>
<div id="tl"><div id="tr"><div id="br"><div id="bl">
testing
<hr style="width: 300px;" />

</div></div></div></div>
</body>
</html>

I've used the css background property to create the corners. I'm not 100% sure what effect you're trying to create, so it may need some tweaking.

DaveSW 15 Master Poster

it validates in xhtml 1.0 strict.

Also http://www.htmlhelp.com/reference/html40/tables/tbody.html
It refers to needing 'one or more' tbody elements in a table.

So I guess you can.

edit: see also http://www.w3.org/TR/html4/struct/tables.html#h-11.2.3 - which also refers to one or more

DaveSW 15 Master Poster

Firefox is available from: http://www.mozilla.org/products/firefox/

However, if someone breaks in through your front door, you don't just stop using it and use the back door. Similarly, I strongly reccomend getting the problem fixed properly in accordance with dlh's instructions (those currently there and those that will follow).

DaveSW 15 Master Poster

you might also want to go to the add/remove programs thing in the control panel and see if it's there.

dlh6213 commented: Good suggestion -- dlh +1
DaveSW 15 Master Poster

uh... the point is Alc is looking to get spyware so he can analyse the effectiveness of different programs etc...
I'm sure Alc doesn't need any help with his Hijackthis log...

alc6379 commented: thanks a bunch! +3
DaveSW 15 Master Poster

try installing a few of the other programs listed here: http://www.daniweb.com/techtalkforums/thread5690.html

especially cwshredder, adaware, spybot.

If that fails you might want to read this thread:
http://www.daniweb.com/techtalkforums/thread7507.html

alc6379 commented: Way to refer them! --alc6379 +3
DaveSW 15 Master Poster

<div id="homepage>
<div>
Content
</div>
</div>

#homepage {
margin-left: 100px;
}

#homepage div {
margin-left: 20%;
}

Basically your left bar is width 20%. But it's placed 100px from the edge. That makes it 20%+100px. You can't make that in pixels or %, so mozilla is adding 20% +80% (=100%) and then it's adding another 100px to 100%, hence the scrollbar.

You mean font sizes by 'much larger'?

red_evolve commented: Appreciate your help. +3
DaveSW 15 Master Poster

Yes that's right.
Basically we are moving the control point of the box to the center by telling it to use margins that are negative and half the width and height of the box. This means that when we position it 50% from left and top we are moving the center of the box to that position.
If you want to see how it works insert the lines of code one at a time, and watch how it changes it. First apply your dimensions, then your negative margins. then put your positioning in. That's how I figured it out the first time Ryan showed me. I actually have a demo built into one of my very early attempts at web design: http://www.emdevelopments.co.uk/tollgate/first/

Hopefully that's a little clearer? Maybe? Maybe Not?

BTW, don't worry too much if negative margins has you baffled. I still don't get Ryan's latest http://www.alistapart.com/articles/negativemargins/ :sad:

Slade commented: thanks buddy +3