Welcome, Guest. Please login or register.

Author Topic: web design question  (Read 4910 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline lurkistTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2002
  • Posts: 513
    • Show only replies by lurkist
web design question
« on: July 04, 2007, 12:57:34 AM »
Hi guys,

Sorry if this is in the wrong section.

If I wanted 4 different images in the 4 corners of a web page, what would I need to do?

Cheers, Lurkist
A1200 Power Tower, Blizzard 1260 66 +32MB, OS3.9, 2.5\\" HD, IDEfix97 + DVD-RW + Zip, SD/FF + 15\\" CRT, Ioblix1200P + scanner, PCMCIA LAN + router
 

Offline kd7ota

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 1433
    • Show only replies by kd7ota
    • http://www.qrz.com
Re: web design question
« Reply #1 on: July 04, 2007, 01:09:57 AM »
As far as I know,

I worked with CSS, and this allows you to define where to put images on all 4 corners of a webpage, but also you may be able to somehow trick that by using tables...
-=-=-=-=-=-
Mine!  :-D
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: web design question
« Reply #2 on: July 04, 2007, 07:55:43 AM »
You have two options: DHTML, which allows you to specify the pixel position of an element on the page, or a table. The latter would be my preference. You need to create a table with a width of 100% and a height of 100%. Then you need three rows and three columns, the top left, top right, bottom left and bottom right cells containing your images. The remaining cells also need a width and height of 100% to make sure they become as large as they can to fill the window and push the cells containing the images to the edges of the window.

If you need the precise table code let me know.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: web design question
« Reply #3 on: July 04, 2007, 07:59:45 AM »
Here is the code you need to do it with tables:




   
      
      
      
   
   
      
   
   
      
      
      
   
imageimage
imageimage



[EDIT]
- Removed left and right cells in the middle row.
- Added cellpadding and cellspacing tags to force images right to the edge of the table.
[/EDIT]

This is IMO the easiest way to do it. You obviously need to replace the word "image" with your actual images.

HTH

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline weirdami

  • Hero Member
  • *****
  • Join Date: Jan 2003
  • Posts: 3776
    • Show only replies by weirdami
    • Http://Bindingpolymer.com
Re: web design question
« Reply #4 on: July 04, 2007, 10:55:34 AM »
Quote
Here is the code you need to do it with tables: ...


Of course, if the content in the middle column (that colspan=3 business) were taller than a browser window, the bottom pictures wouldn't show up until you scrolled down. For the same reason, if it were wider, the right side images would be unseen unless you scrolled sideways. Tables are weird and all dynamicy or something because the content inside seems to always screw with your carefully planned layout if you aren't careful. :-(
----
Binding Polymer: Keeping you together since 1892.
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: web design question
« Reply #5 on: July 04, 2007, 10:58:35 AM »
Yes that's true, but if you use DHTML to place the images precisely by pixel then when the window scrolls the images will scroll with it. I think using tables is a better solution, and then put an IFRAME in the center cell for the page content. That way the content can scroll without affecting the positioning of the images.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline uncharted

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1520
    • Show only replies by uncharted
Re: web design question
« Reply #6 on: July 04, 2007, 12:34:10 PM »
There is no height attribute for in any standard.  So Moto's code is not guarenteed to work in every browser.

If you're targetting modern browsers then CSS is probably the answer.  Using fixed positioning you can place objects at fixed point within the window.  They will stay there regardless of scrolling.
 

Offline lurkistTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2002
  • Posts: 513
    • Show only replies by lurkist
Re: web design question
« Reply #7 on: July 04, 2007, 01:24:13 PM »
Thanks for the answers.

The content is indeed an iframe of roughly postcard size which is bang in the center, and since I wanted to avoid css I think I`ll try Moto`s idea a bit later.

Many thanks, Lurkist
A1200 Power Tower, Blizzard 1260 66 +32MB, OS3.9, 2.5\\" HD, IDEfix97 + DVD-RW + Zip, SD/FF + 15\\" CRT, Ioblix1200P + scanner, PCMCIA LAN + router
 

Offline lurkistTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2002
  • Posts: 513
    • Show only replies by lurkist
Re: web design question
« Reply #8 on: July 04, 2007, 03:27:39 PM »
Nearly there I think.  The page is

http://www.teague.abelgratis.com/IGS/IGS3.html

Just need to align the images within their tables.
A1200 Power Tower, Blizzard 1260 66 +32MB, OS3.9, 2.5\\" HD, IDEfix97 + DVD-RW + Zip, SD/FF + 15\\" CRT, Ioblix1200P + scanner, PCMCIA LAN + router
 

Offline lurkistTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2002
  • Posts: 513
    • Show only replies by lurkist
Re: web design question
« Reply #9 on: July 04, 2007, 03:39:26 PM »
Used align and valign, results are better.

There still seems to be a gap at the bottom though. (using IE6 here)

Cheers
A1200 Power Tower, Blizzard 1260 66 +32MB, OS3.9, 2.5\\" HD, IDEfix97 + DVD-RW + Zip, SD/FF + 15\\" CRT, Ioblix1200P + scanner, PCMCIA LAN + router
 

Offline jj

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4052
  • Country: wales
  • Thanked: 2 times
  • Gender: Male
    • Show only replies by jj
Re: web design question
« Reply #10 on: July 04, 2007, 03:40:01 PM »
using IE6 here in work, and as soon as you open that page full size, running a res of 1280 X 800 here, and the bottom corner images apear half way up page
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw

Xbox Live: S0ulA55a551n2
 
Registered MorphsOS 3.13 user on Powerbook G4 15"
 

Offline lurkistTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2002
  • Posts: 513
    • Show only replies by lurkist
Re: web design question
« Reply #11 on: July 04, 2007, 04:10:22 PM »
Hmm, it`s not using 100% of the page.  I`ve left the tableborder in for troubleshooting purposes.

Help!
A1200 Power Tower, Blizzard 1260 66 +32MB, OS3.9, 2.5\\" HD, IDEfix97 + DVD-RW + Zip, SD/FF + 15\\" CRT, Ioblix1200P + scanner, PCMCIA LAN + router
 

Offline uncharted

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1520
    • Show only replies by uncharted
Re: web design question
« Reply #12 on: July 04, 2007, 04:20:33 PM »
Is the centre content supposed to scroll or all be visible at once?  I get a scroll-bar viewing on Firefox on the iBook (1024x768).
 

Offline lurkistTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2002
  • Posts: 513
    • Show only replies by lurkist
Re: web design question
« Reply #13 on: July 04, 2007, 06:09:47 PM »
Center content is supposed to scroll.
A1200 Power Tower, Blizzard 1260 66 +32MB, OS3.9, 2.5\\" HD, IDEfix97 + DVD-RW + Zip, SD/FF + 15\\" CRT, Ioblix1200P + scanner, PCMCIA LAN + router
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: web design question
« Reply #14 on: July 04, 2007, 06:12:15 PM »
For some reason the height property of the center cell is not working in your code. Check your source against the example I posted, and if necessary re-paste the code in to yours. Check that works, then add things one a time and keep checking so if it breaks, you'll know why.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10