Forum Moderators: open

Message Too Old, No Replies

Centering a Framed Page

What would cause this...

         

newnewbie1

12:55 pm on Mar 17, 2003 (gmt 0)

10+ Year Member



Hi!

I've got a centered framed page that is just about 10 pixels to the right of the regular framed page.

What would cause that?

Looks like when I click on the framed page everything just shifts to the right a bit. That's driving me crazy! I want to make the framed page and the non-framed page line up in the center, on the same exact pixel...

Here's my code of the framed page:

<frameset rows="137,*" frameborder="NO" border="0" framespacing="0">
<frame src="topNav3.htm" name="topFrame" scrolling="NO" noresize marginheight="0" marginwidth="0" >
<frame src="http://www.example.com/search/index.cfm?Reciprocity=No&CFID=127644&CFTOKEN=67197566&PropertyTypeID=7"
marginheight="0" marginwidth="0" name="mainFrame">
</frameset>
<noframes><body>

</body>

Here's the body tag from the non-framed page:

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#999999">

[edited by: tedster at 8:01 pm (utc) on Mar. 17, 2003]
[edit reason] switch to a generic url [/edit]

tedster

8:13 pm on Mar 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not sure where to look - can you explain what the "centering" code is in each case?

A couple of comments as well -

1. It's not valid for one page to have both <frameset> and <body>

2. The attributes in the regular body tag are also non-standard. It's better to use css and give body zero margin and padding that way.

Not that this will fix your problem, but it's always best to begin with valid code and tweak from there.

Mike12345

3:43 pm on Mar 18, 2003 (gmt 0)

10+ Year Member



forget what i just posted it was all rubbish :(

Sorry