Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.

Ezilon Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 06-19-2004, 05:36 AM   #1 (permalink)
Inactive
 
Join Date: 06-19-04
Posts: 6
iTrader: 0 / 0%
Latest Blog:
None

desdemona is liked by many
CSS positioning and page size help

I'm am trying to make a layout with a few graphics and an iframe using css positioning - my idea is to make a layout no bigger than the screen.

Basically I've just put my images and iframe onto a html page in a fixed size div and positioned it using relative positioning.
The positioning part work as it should and the site looks as it should in all screen resolutions.
My problem is, when I view the site in the browser there's a lot of empty space at the bottom of my page in the div... the page is just as big as if I didn't position the elements at all. Even if the content fits nicely in my fixed size div I can scroll down on the empty space.

Now I tried fixing this by just removing the scroll option for the div, and it seemed to work alright. BUT when I use links in my iframe with named anchors what happens is the links works ok but the page in the div will automatically scroll/jump down to the bottom of that page (i.e the empty space) when the link is activated
I have NO idea how to fix this and I would be really sorry to ditch my layout because of this. I'd be really happy for any advice on this
desdemona is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 06-19-2004, 11:33 AM   #2 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Can you show the page?
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-19-2004, 01:09 PM   #3 (permalink)
Inactive
 
samer's Avatar
 
Join Date: 10-13-03
Location: Lebanon
Posts: 4,099
iTrader: 0 / 0%
Latest Blog:
None

samer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nice
ditto.
samer is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-20-2004, 12:19 PM   #4 (permalink)
Inactive
 
Join Date: 06-19-04
Posts: 6
iTrader: 0 / 0%
Latest Blog:
None

desdemona is liked by many
I haven't uploaded it yet but I guess I better so you guys can take a look.
I tried playing around with some test pages yesterday, and it seems that I get the extra empty space on the page when I move up images with css positioning, even if it's just a page with images only and no iframe.
Maybe I'll just have to redo the layout with div layers instead of an iframe.
I'll post a link when the page is uploaded, thanks for helping out
desdemona is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-21-2004, 05:20 AM   #5 (permalink)
Inactive
 
Join Date: 06-19-04
Posts: 6
iTrader: 0 / 0%
Latest Blog:
None

desdemona is liked by many
ok, I uploaded the test page.
You can find it here: http://home20.inet.tele.dk/desdemona/(this is my pet site for silly webstuff)
Click on the 'testpage' link... and when you click the '1. layers' link the whole thing jumps

I validated the css with a w3c css validator and the only error messages I got was regarding the scrollbar colors, so that shouldn't be it...
desdemona is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-21-2004, 07:56 AM   #6 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
I don't know what is causing that. The only thing I noticed is that in your stylesheet you have

#content {
position: relative;
top: -310px;
left: 185px;
}

Why is it -310px? Shouldn't it just be 310px?
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-21-2004, 09:21 AM   #7 (permalink)
Inactive
 
Join Date: 06-19-04
Posts: 6
iTrader: 0 / 0%
Latest Blog:
None

desdemona is liked by many
well the iframe appears at the bottom of the page, so I'm moving it up, hence the -
I am convinced it's the moving the iframe up that's causing the empty space at the bottom, but I can't figure out a better way to make it show up where I want it to
desdemona is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Small page size and Google? lincolnbill Google Forum 9 03-25-2007 06:27 PM
CSS positioning vs. table positioning downtroden Coding Forum 2 07-19-2004 11:40 AM
NEED help with positioning iframes or table on my page pleas cgrossi04 Coding Forum 1 05-20-2004 03:34 PM
Website page size Stitchy626 Web Design Lobby 3 03-02-2004 02:27 AM
Images on page show as [AD-SIZE] Ricoool Web Design Lobby 0 10-16-2003 06:08 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 07:42 PM.
© Copyright 2008 V7 Inc