• Help
  • Search
  • Login
  • Register
  • Home

Forum: web design and graphics community

Celestial Star Forum > Web Development > Coding > Divs plus Tables?
Pages: [1]
« previous next »
  Print  
Author Topic: Divs plus Tables?  (Read 918 times)
starshinesky
Angeling
*
Posts: 6



View Profile WWW
Divs plus Tables?
« on: May 25, 2008, 09:58:02 AM »

I made a Website layout that I adore! I think it is the nicest one I have made yet and it seems virtually fool proof. Except one problem, It was designed to have Div coding, and image mapping.To pull it all together I would love the bottom to be designed like a table, stretching as content is added. Is this impossible? Or just not probable? I just thought I would ask because thats how I imaged it would look best. If not I can just continue coding like I would have.
Logged

katie-kate
Incubus
**
Posts: 87



View Profile WWW
Re: Divs plus Tables?
« Reply #1 on: May 26, 2008, 09:22:55 PM »

What do you mean by "stretching as content is added"? I think I have an idea; if you look at my site [http://kokun.faded-chimera.net], the yellow bar isn't a set size and instead grows as text is added. That could still be done with div coding, as proven by my layout, which was kindly created for me by my friend Megori. When I'm coding a div layout and want something to stretch, what I do is copy the bottom pixel of my design and save it as bg.jpg, and then use it as the background image in my CSS coding, like this:

body {background: url('bg.jpg'); repeat: y-repeat;}

That ensures that image will repeat down the page as you add content.
Logged

Nelson
Skogul
**
Posts: 46


"Love one and flirt with the rest."


View Profile WWW
Re: Divs plus Tables?
« Reply #2 on: May 26, 2008, 11:21:18 PM »

That's right. One thing though... It should be:

Code:
body {
   background: url(bg.jpg) repeat-y; /*take not of the repeat code*/
   }

or equivalently,

Code:
body {
   background-image:url(bg.jpg);
   background-repeat:repeat-y;
   }

That should do it. Good luck!
« Last Edit: May 26, 2008, 11:24:28 PM by Nelson » Logged

Stalk me?
Vangs
Administrator
Valkyrie Randgris
*****
Posts: 525



View Profile WWW
Re: Divs plus Tables?
« Reply #3 on: May 27, 2008, 02:11:32 PM »

I've actually resolved this thread over MSN messenger with the original poster, but to explain what it was, it was just having a background image repeat indefinitely for the length of the content.

Nelson, what katie-kate wrote was in fact correct, you can define the background css how she did.
Logged

Nelson
Skogul
**
Posts: 46


"Love one and flirt with the rest."


View Profile WWW
Re: Divs plus Tables?
« Reply #4 on: May 27, 2008, 02:42:26 PM »

repeat: y-repeat; is correct?!
Logged

Stalk me?
Vangs
Administrator
Valkyrie Randgris
*****
Posts: 525



View Profile WWW
Re: Divs plus Tables?
« Reply #5 on: May 27, 2008, 02:49:33 PM »

Sorry never realised they had the value the wrong way around, I thought you were refering to the fact they placed both the url and repeat in the same line.
Logged

katie-kate
Incubus
**
Posts: 87



View Profile WWW
Re: Divs plus Tables?
« Reply #6 on: May 28, 2008, 08:17:35 PM »

Ahh, thanks for catching that, Nelson. I didn't have any code on hand to properly quote, and I almost always put it backwards the first time around, haha.
Logged

Pages: [1]
  Print  
« previous next »
 
Jump to:  

  • Welcome, Guest
  • Members login
  • Register for free

General

  • General
  • New members
  • Announcements
  • Support / Suggestions

Art boards

  • Creative mediums
  • Requests and offers
  • Tutorials
  • Celestial Star tutorials

Web development

  • Coding
  • Web design
  • Advertisements / affiliation

Off-topic

  • The non-sense
  • Ententainment

Go up
eXTReMe Tracker
  • Valid XHTML
  • Valid CSS
Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC | Seo4Smf v0.2 © Webmaster's Talks
Loading...