![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
This is doing my head in. I'm trying to get my head around CSS, and I reckon I'm doing fairly well so far. I have the following layout successfully built as a prototype, using a table layout structure, but I understand that I should really be considering CSS based layouts. (Content vs presentation, and all that.) Variations of this type of problem appear to be FAQs (with answers), but I can't find anything that helps me solve this particular thorn. So. Consider a fluid layout. In the top left hand corner I have a fixed size logo (brand identifer). To its immediate right I have a fixed size slot for a self-promoting advertisement (i.e. visual hook to part of this website). To its right want to fill the remainder of the space until the right-hand edge of the browser window with a stretchable image. This stretchable image should be as wide as necessary, but should remain at its known fixed height. Now for the vertical furniture. Starting with the logo in the top left hand corner, below that I want a panel that will contain context sensitive shortcuts. Below that I would like a image that will stretch into the remainder of the vertical space until it's level with the end of the main content. This stretchy image should be a known fixed width. In case it's not obvious, the per-page content will go into the available remainder of the space. Oh. Neither of the stretchy images can be handled with a repeating image; if you like you can imagine it as a gradual fade between the prinicpal colour associated with the fixed images and their complementary, along with some swirly stuff to break the boredom. I hate to post here, but despite a fairly big effort (several hours digging through tutorials, FAQs, etc.), I cannot find anything that actually satisfies my requirement. Clues, pointers, and solutions all gratefully received. Cheers, Chris |
#3
| |||
| |||
|
|
This is doing my head in. I'm trying to get my head around CSS, and I reckon I'm doing fairly well so far. I have the following layout successfully built as a prototype, using a table layout structure, but I understand that I should really be considering CSS based layouts. (Content vs presentation, and all that.) Variations of this type of problem appear to be FAQs (with answers), but I can't find anything that helps me solve this particular thorn. So. Consider a fluid layout. In the top left hand corner I have a fixed size logo (brand identifer). To its immediate right I have a fixed size slot for a self-promoting advertisement (i.e. visual hook to part of this website). To its right want to fill the remainder of the space until the right-hand edge of the browser window with a stretchable image. This stretchable image should be as wide as necessary, but should remain at its known fixed height. Now for the vertical furniture. Starting with the logo in the top left hand corner, below that I want a panel that will contain context sensitive shortcuts. Below that I would like a image that will stretch into the remainder of the vertical space until it's level with the end of the main content. This stretchy image should be a known fixed width. In case it's not obvious, the per-page content will go into the available remainder of the space. Oh. Neither of the stretchy images can be handled with a repeating image; if you like you can imagine it as a gradual fade between the prinicpal colour associated with the fixed images and their complementary, along with some swirly stuff to break the boredom. I hate to post here, but despite a fairly big effort (several hours digging through tutorials, FAQs, etc.), I cannot find anything that actually satisfies my requirement. Clues, pointers, and solutions all gratefully received. |
#4
| |||
| |||
|
|
In the top left hand corner I have a fixed size logo (brand identifer). To its immediate right I have a fixed size slot for a self-promoting advertisement (i.e. visual hook to part of this website). To its right want to fill the remainder of the space until the right-hand edge of the browser window with a stretchable image. This stretchable image should be as wide as necessary, but should remain at its known fixed height. |
|
Oh. Neither of the stretchy images can be handled with a repeating image; if you like you can imagine it as a gradual fade between the prinicpal colour associated with the fixed images and their complementary, along with some swirly stuff to break the boredom. I hate to post here, |
#5
| |||
| |||
|
|
On 2009-09-19, Chris Davies <chris-usenet (AT) roaima (DOT) co.uk> wrote: This is doing my head in. I'm trying to get my head around CSS, and I reckon I'm doing fairly well so far. I have the following layout successfully built as a prototype, using a table layout structure, but I understand that I should really be considering CSS based layouts. (Content vs presentation, and all that.) .... |
|
Absolutely positioned imgs may be the solution here. Set position: relative on the normal flow blocks in the layout you need to use as reference points for the imgs and set whichever are most convenient out of top, left, bottom, right, width and height on the imgs to fit them in. |
#6
| |||
| |||
|
|
In article <slrnhbaj2n.3g8.spamspam (AT) bowser (DOT) marioworld>, Ben C <spamspam (AT) spam (DOT) eggs> wrote: On 2009-09-19, Chris Davies <chris-usenet (AT) roaima (DOT) co.uk> wrote: This is doing my head in. I'm trying to get my head around CSS, and I reckon I'm doing fairly well so far. I have the following layout successfully built as a prototype, using a table layout structure, but I understand that I should really be considering CSS based layouts. (Content vs presentation, and all that.) ... Absolutely positioned imgs may be the solution here. Set position: relative on the normal flow blocks in the layout you need to use as reference points for the imgs and set whichever are most convenient out of top, left, bottom, right, width and height on the imgs to fit them in. I could not quickly quite get it right positioning the images, but throw in an extra abs DIV and let the img do a stretch in the usually reliable way, seems to work: http://dorayme.netweaver.com.au/stretch.html |
#7
| |||
| |||
|
|
In article <iidfo6x2ht.ln2 (AT) news (DOT) roaima.co.uk>, Chris Davies <chris-usenet (AT) roaima (DOT) co.uk> wrote: In the top left hand corner I have a fixed size logo (brand identifer). To its immediate right I have a fixed size slot for a self-promoting advertisement (i.e. visual hook to part of this website). To its right want to fill the remainder of the space until the right-hand edge of the browser window with a stretchable image. This stretchable image should be as wide as necessary, but should remain at its known fixed height. You can't easily make this third stretchable image an IMG element because the browser cannot know from the HTML and any CSS what percentage width of a users browser is left for it after the logo and ad. |
#8
| |||
| |||
|
|
On 2009-09-19, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote: In article <iidfo6x2ht.ln2 (AT) news (DOT) roaima.co.uk>, Chris Davies <chris-usenet (AT) roaima (DOT) co.uk> wrote: In the top left hand corner I have a fixed size logo (brand identifer). To its immediate right I have a fixed size slot for a self-promoting advertisement (i.e. visual hook to part of this website). To its right want to fill the remainder of the space until the right-hand edge of the browser window with a stretchable image. This stretchable image should be as wide as necessary, but should remain at its known fixed height. You can't easily make this third stretchable image an IMG element because the browser cannot know from the HTML and any CSS what percentage width of a users browser is left for it after the logo and ad. No, but we can use absolute positioning because we know the widths of the logo and the ad slot. Suppose the width of those two is 400px. Then we can have an abs pos div, left: 400px, right: 0, and some appropriate height. Then put the img in that div with width and height 100% on the img. No need for Javascript. |
#9
| |||
| |||
|
|
I could not quickly quite get it right positioning the images, but throw in an extra abs DIV and let the img do a stretch in the usually reliable way, seems to work: http://dorayme.netweaver.com.au/stretch.html |
|
Before going on, how about supply a URL with images and stuff (perhaps your best shot at the HTML and CSS)? |
#10
| |||
| |||
|
|
Get a copy of TopStyle 4 http://www.topstyle4.com/ It will force you to do things correctly. |
![]() |
| Thread Tools | |
| Display Modes | |
| |