This is a discussion on "A Better Way of Positioning" within the Web Page Design section. This forum, and the thread "A Better Way of Positioning are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
A Better Way of Positioning
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
A Better Way of Positioning
Hello
I wondered if someone could suggest a better way of doing this as I've more than likely found the most inefficient way of doing it. What this achieves is here... www.slightlyaskew.co.uk/deadship/index.php essentially the row where the text is is three images, the middle one being used as a background in the "main_text" DIV. I spent an age trying to stop the DIVs from line breaking, and finally came up with the code below. Please don't comment on the rest of the site! I know it's nowhere near finished. One step at a time and all that. Thank you in advance for any help and advice. Christoff x My CSS
|
|
#2
|
|||
|
|||
|
Re: A Better Way of Positioning
Hmmm ... you know what? Since you're using a scrolling div, why not make the background 1 image then all you have to do is position you scrolling div and you menu.
That's how I would do it. Much simpler and cleaner. |
|
#3
|
|||
|
|||
|
Re: A Better Way of Positioning
I like your thinking.
Ummm... how would I got about doing this? Presumably i need my text DIV to overlap the DIV with my image in it? Or am I already barking up the wrong tree? |
|
#4
|
|||
|
|||
|
Re: A Better Way of Positioning
Apply your background (the paper thing) to body { }
Then all you would need is 2 divs ... 1 for the content and 1 for the nav |
|
#5
|
|||
|
|||
|
Re: A Better Way of Positioning
Ah yes I see. Never thought of doing it that way for some reason.
What's the best way of positioning these DIVs so they overlap the the existing image? If I use absolute references, will I come unstuck with different screen sizes? |
|
#6
|
|||
|
|||
|
Re: A Better Way of Positioning
Since the existing image is applied as a background, there is no problem.
You could do something like this
|
|
#7
|
|||
|
|||
|
Re: A Better Way of Positioning
Thanks!
So I use margin-right and margin-top in the Content DIV to position the text over the image? And a similar thing for the navigation DIV? Sorry to take up your time! You can have two sheep as a token of my appreciation. |
|
#8
|
|||
|
|||
|
Re: A Better Way of Positioning
Basically yeah ....
|
|
#9
|
|||
|
|||
|
Re: A Better Way of Positioning
But doesn't that mean that the text will be in a different place depending on the size of the users display?
|
|
#10
|
|||
|
|||
|
Re: A Better Way of Positioning
It shouldn't ... Try it out ... you'll see.
|
|
#11
|
||||
|
||||
|
Re: A Better Way of Positioning
nope, as long as the image is in the same place, which it is.
__________________
Thanks Marc Staff Manager - Want to be a Moderator? PM me. |
![]() |
| Tags |
| div line breaks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS and positioning | djme | Web Page Design | 6 | Feb 3rd, 2006 14:27 |
| Positioning with CSS | Tino | Web Page Design | 8 | Jan 21st, 2006 16:45 |
| css positioning | ivyholly | Web Page Design | 14 | Dec 20th, 2005 19:43 |
| Positioning with css | Hub | Web Page Design | 12 | Dec 13th, 2005 20:45 |
| div positioning | benbacardi | Web Page Design | 10 | May 24th, 2004 13:25 |