This is a discussion on "Trying to get div design to work" within the Web Page Design section. This forum, and the thread "Trying to get div design to work are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Trying to get div design to work
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Trying to get div design to work
Example of design: http://www.eyesoute.com/new/
New div version: http://www.eyesoute.com/new/index2.php I decided to try to make an all div design to see how I like it, but I'm having some troubles.... I can't seem to get the entire design to stretch 100% width/height, and not have extra space at bottom from the divs stacking on each other. I would also like to know the best way to get a little watermark (Shown on both pages), to stay in that area, below the text but still in sight... I plan on having the div with content in it, have a background image, so that means I can't just put a background: bottom right, in the content div... Right? Or can divs have more then one background (That would be oh so nice) Note: You must view the second site in IE right now, for some reason it does not work outside of IE (Another problem I need help with Thanks in advanced... I'm not really new to divs, but I am new to making pure div designs. |
|
|
|
||||
|
Re: Trying to get div design to work
This belongs in the CSS forum.
|
|
||||
|
Re: Trying to get div design to work
unfortunately while css 3 I believe supports multiple background images it is not widely supported so you are stuck with the css 2.x spec for a while.
BTW: Safari has uspported multiple background images since v 1.3 http://decaffeinated.org/archives/20...ckground-image
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
|||
|
Re: Trying to get div design to work
As a general rule, if something works in IE but not Firefox, then your code is screwed.
Firefox is more compliant and less tolerant of code errors. I suggest you seperate ALL your css into a seperate file only using inline css if you reall, really have to. Looking at your code: The correct syntax for including a background image is, 'background-image: url...' and not 'background: url...' as you have. As you are using xhtml, then you close tags such as img should end ' />'. Note the space before the /. your img tag closes using the old html format. With regard to your watermark question; you could have a div that wraps around everything else and set a background image here with your watermark. Other 'content' divs would then run over the top of it. As long as your content divs have a transparent background, then your watermark will show through. You should note that having text on top of images can make reading the text difficult if you are not careful. your current choice of foreground/background colours is also going to cause accessibility problems. |
|
||||
|
Re: Trying to get div design to work
Safari also supports the CSS 3 columns module. heh. Konqueror supports both as well I believe now makes sense since both are KHTML based. Don't know about FF though but I think it does too.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
|||
|
Re: Trying to get div design to work
what about Opera?
|
|
|||
|
Re: Trying to get div design to work
Thanks everyone, but one very important question left... Why is it my div doesn't stretch 100% height correctly? I have a 100% height body tag, I have 100% height/width parent div, and the div I'm trying to stretch has 100% height as well... With or without content, it doesn't stretch at all in FF, and stretches 100% + size of div above it in IE.
|
|
|||
|
Re: Trying to get div design to work
Quote:
And this is all temporary til I get everything working... Then I make it proper xhtml, and move all the style stuff to css. |
|
||||
|
Re: Trying to get div design to work
There is absolutely no reason why you can't use the background property. The background-image property is longhand, but they both do the same thing.
|
|
|||
|
Re: Trying to get div design to work
Well after about an hour and a half of working with a friend of mine, I got it to work... In a way
www.eyesoute.com/new/index2.php As you can see, a new problem has arisen... When content goes over the 100% mark, the divs don't stretch with it. Now this is obviously because I'm using position absolute on the content... However, it is the ONLY thing that has worked for me.... Any suggestions? |
|
|||
|
Re: Trying to get div design to work
U want scroll bar no? try to use overflow:auto;..
|
|
|||
|
Re: Trying to get div design to work
I don't want to use autoflow, I want the entire design to work correctly and use the browser's scroll bar only when needed, and not use a div's scroll bar
|
|
|||
|
Re: Trying to get div design to work
Sykoi... I've been following this thread in hopes of learning something..
Can you explain how you solved the problem? |
![]() |
| Tags |
| 100, design, div, stretch |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Web Design Work | crackafaza | Job Opportunities | 0 | Oct 16th, 2007 11:57 |
| how do you get web design work? | Gerry | Webforumz Cafe | 15 | May 13th, 2007 21:07 |
| Freelance Web Design Work | ablaye | Job Opportunities | 0 | Apr 23rd, 2006 02:50 |
| Freelance design work | pedroartois | Job Opportunities | 2 | Feb 23rd, 2006 21:49 |
| Will my design work? | Tim356 | PHP Forum | 4 | Jul 25th, 2005 11:27 |