iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-17-2005, 01:18 AM
WebProWorld Member
 
Join Date: Sep 2005
Posts: 82
sysop9999 RepRank 0
Default CSS background moves

I'm just getting into CSS so I'm sure it's pretty basic stuff.

But I'm getting this effect each time a link is clicked on a page and the page needs to reload (like: ../view.asp?id=20). It looks as the background itself is moving to the left each time - the content stays put on the screen. It's only the background that moves a few pixels each time.
It also effect the scrollbar as it moves along with it to the left - after 10-12 reloads of the page, the page turns all white.

What's causing that?

I use DIV's within DIV's etc. but nothing heavy and it shouldn't effect the background ..... or?
__________________
Kim B. Juul
Danish Web Design & SEO
Reply With Quote
  #2 (permalink)  
Old 11-17-2005, 01:27 AM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 
Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,181
ADAM Web Design RepRank 1
Default

URL? Kinda hard to tell without one.
Reply With Quote
  #3 (permalink)  
Old 11-17-2005, 01:52 AM
WebProWorld Member
 
Join Date: Sep 2005
Posts: 82
sysop9999 RepRank 0
Default

I managed to put up a testpage.

http://www.incomm.dk/thetest.asp
__________________
Kim B. Juul
Danish Web Design & SEO
Reply With Quote
  #4 (permalink)  
Old 11-17-2005, 02:00 AM
WebProWorld Member
 
Join Date: Sep 2005
Posts: 82
sysop9999 RepRank 0
Default

Now it somehow works. I use it on another domain within a frame. Maybe CSS doesn't like frames?
__________________
Kim B. Juul
Danish Web Design & SEO
Reply With Quote
  #5 (permalink)  
Old 11-17-2005, 02:10 AM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 
Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,181
ADAM Web Design RepRank 1
Default

I don't see a background there at all, but I do see a broken image. Does that have something to do with it?
Reply With Quote
  #6 (permalink)  
Old 11-17-2005, 02:26 AM
WebProWorld Member
 
Join Date: Sep 2005
Posts: 82
sysop9999 RepRank 0
Default

nahh ... I just made room for logo-stuff there. So the image is supposed to be broken :-)

Itīs working all ok now when I use it on my mainsite. The other site has its DNS pointing to a sub-directory and since I don't have a unique IP address on that one, I had to point it in there using a frame. While I'm working on a site, I just buy the domain name and do it like that until it's finish - I'm cheap, I know :-)

Anyways, it looks as it's that frame there's messing things up. I'll try to put up the testpage on the 'framed' one instead.... then it's easy to see the error
__________________
Kim B. Juul
Danish Web Design & SEO
Reply With Quote
  #7 (permalink)  
Old 11-17-2005, 02:30 AM
WebProWorld Member
 
Join Date: Sep 2005
Posts: 82
sysop9999 RepRank 0
Default

try this URL instead....

http://www.modelized.net/

You'll probably already notice that the scrollbar has moved slightly to the left ... and it does so each time a link has been clicked
__________________
Kim B. Juul
Danish Web Design & SEO
Reply With Quote
  #8 (permalink)  
Old 11-18-2005, 12:44 AM
Steelchord's Avatar
WebProWorld Member
 
Join Date: Nov 2005
Location: Tampa, FL
Posts: 31
Steelchord RepRank 1
Default Arrrrgghhh....

This site is well and truly fubar'd.

First: get rid of frames. If you *must* use a frame for your asp-driven menu, then use an iframe instead. What's happening with the "moving scrollbar" is that you're opening a new frame within the existing newsbox frame (or whatever you're calling it, I forget.) So don't. There's a way to avoid that problem and keep the frames structure intact the way you have it, but it is not worth your time or mine for me to explain it.

The fix: Open the new page in "top" instead, and make sure that each page has the other elements that you want to include--topbar, menu, etc. You can generate them using ssi, asp, javascript, or your favorite other flavor, or just copy and paste the html each time, but you need to have those elements on each page.

Unless, of course, instead of using a pageload within a frame for your content changes, you use an xml parser script, or something equally sensible... That would be faster, less bloated, and the content pages would be easier to write. Just my two cents.

--Geek With A Guitar
Reply With Quote
  #9 (permalink)  
Old 11-18-2005, 01:57 AM
WebProWorld Member
 
Join Date: Sep 2005
Posts: 82
sysop9999 RepRank 0
Default

lol... I had hoped it was some CSS thing I could solve with a simple:

{
frame: freeze-dammit; }

:-)

But thanks for clearing that one out. I never found out anything, so I removed the frame-thingy from the DNS admin, so now it will show the 'true' URL and it works as expected now (not the above example URL though - that one still uses a frame)
__________________
Kim B. Juul
Danish Web Design & SEO
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:51 AM.



Search Engine Optimization by vBSEO 3.3.0