Trying to get div design to work

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 18th, 2006, 23:24
New Member
Join Date: Dec 2006
Location: No
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote

  #2 (permalink)  
Old Dec 19th, 2006, 01:11
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Trying to get div design to work

This belongs in the CSS forum.
Reply With Quote
  #3 (permalink)  
Old Dec 19th, 2006, 14:06
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,730
Blog Entries: 1
Thanks: 0
Thanked 16 Times in 16 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
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
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #4 (permalink)  
Old Dec 19th, 2006, 15:11
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Trying to get div design to work

I wish browsers would be quicker to eat up new technologies. It seems ridiculous to me that it basically takes at least 5 years for anything significant to go into effect.
Reply With Quote
  #5 (permalink)  
Old Dec 19th, 2006, 15:20
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
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.
Reply With Quote
  #6 (permalink)  
Old Dec 19th, 2006, 16:34
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,730
Blog Entries: 1
Thanks: 0
Thanked 16 Times in 16 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
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.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #7 (permalink)  
Old Dec 19th, 2006, 16:38
Reputable Member
Join Date: Sep 2006
Location: Rothwell
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to chubbs Send a message via Skype™ to chubbs
Re: Trying to get div design to work

what about Opera?
Reply With Quote
  #8 (permalink)  
Old Dec 19th, 2006, 18:47
New Member
Join Date: Dec 2006
Location: No
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #9 (permalink)  
Old Dec 20th, 2006, 00:21
New Member
Join Date: Dec 2006
Location: No
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Trying to get div design to work

Quote:
Originally Posted by ukgeoff View Post
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.
Thanks... And regarding the background thing... http://www.w3schools.com/css/pr_background.asp - Why does w3c say background: url() is acceptable use, if its not correct? (Not trying to be mean, its a serious question... If background isn't meant to be used like that, why does w3c say its okay?)

And this is all temporary til I get everything working... Then I make it proper xhtml, and move all the style stuff to css.
Reply With Quote
  #10 (permalink)  
Old Dec 20th, 2006, 01:22
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #11 (permalink)  
Old Dec 20th, 2006, 01:41
New Member
Join Date: Dec 2006
Location: No
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #12 (permalink)  
Old Dec 20th, 2006, 05:31
Reputable Member
Join Date: Sep 2006
Location: Rothwell
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to chubbs Send a message via Skype™ to chubbs
Re: Trying to get div design to work

U want scroll bar no? try to use overflow:auto;..
Reply With Quote
  #13 (permalink)  
Old Dec 20th, 2006, 05:33
New Member
Join Date: Dec 2006
Location: No
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #14 (permalink)  
Old Dec 20th, 2006, 11:48
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #15 (permalink)  
Old Dec 20th, 2006, 11:59
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Trying to get div design to work

You've got a few minor problems in Safari with the login form. You should set everything in that area zero for margin and padding.
Reply With Quote
Reply

Tags
100, design, div, stretch

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB 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
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


All times are GMT. The time now is 04:59.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43