Jump to content


Content Boxes


5 replies to this topic

#1 maxic0

    Young Padawan

  • Members
  • Pip
  • 19 posts

Posted 03 September 2006 - 09:33 AM

Hi, can someone please make me a tutorial, or link me to a tutorial, that explains this...

On CMS's and stuff when you write a new peice of news it comes out in a box, with images around it.
If the piece of news is long then the box is bigger, and if its shorter then the box is shorter.

Can someone please explain the CSS of this and how i would do this please.
I would google it, but i dont know what to search for..

Thanks

#2 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 03 September 2006 - 02:33 PM

Its a repeating background, the box will expand with the content.
+------------------------+
+	top image	  +
+------------------------+
+						+
+	  content		+<===== repeating background image#
+						+
+-----------------------+
+   bottom images	 +
+-----------------------+

Hope that helps!

background: [color] url( [url] ) [position] [repeat-(none|x|y)];

Edited by .Matt, 03 September 2006 - 02:36 PM.


#3 maxic0

    Young Padawan

  • Members
  • Pip
  • 19 posts

Posted 03 September 2006 - 05:13 PM

hmm nope not really lol.
Can you put the CSS for it please?

#4 z77

    Content Contributor

  • Members
  • Pip
  • 176 posts
  • Location:Atlanta
  • Interests:Art, Computers, Goldfish, Church, Pizza, Ice Cream, Frisbee, Paintball, PHP, C4D, Photoshop, Friends :)

Posted 03 September 2006 - 05:58 PM

I would suggest taking this tutorial from start to finish:

http://www.greycobra.com/tutorials/creatin...und/page-1.html

It will explain how to make a repeating content box.

#5 lipsum1992

    Young Padawan

  • Members
  • Pip
  • 144 posts

Posted 03 September 2006 - 09:01 PM

Its basically like creating a layout. You do the same but with just the one box. Then after you've sliced it you code it to be an expandable table. Atleast i think thats what you need anyway. Hope it helps.

#6 maxic0

    Young Padawan

  • Members
  • Pip
  • 19 posts

Posted 04 September 2006 - 05:35 AM

Yay, i can do it. Thanks you guys.
Apart from .Matt :) lol





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users