This is a discussion on "Html Colour box backgrounds" within the Web Page Design section. This forum, and the thread "Html Colour box backgrounds are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Html Colour box backgrounds
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Html Colour box backgrounds
Hi all.
Just looking for the right html to create boxes ( like a background for specific areas of the page ) of varying sizes to create distinct areas. eg. http://www.bbc.co.uk/ Would like to use variety of colours and maybe sometimes add a border. Struggling to find right code. Hope you can help. Paddy. |
|
|
|
#2
|
|||
|
|||
|
Re: Html Colour box backgrounds
What have you tried so far?
|
|
#3
|
|||
|
|||
|
Re: Html Colour box backgrounds
Hi tried this - but it also has a table woven into it and don't know which bits to lose to make it work.
<STYLE type=text/css> <!-- .tealtable, .tealtable TD, .tealtable TH { background-color:white; color:black; } --> </STYLE> <TABLE class=tealtable cellPadding=10> <TBODY> <TR> <TH><EM>Operator</EM></TH> <TH><EM>Ext</EM></TH> <TH><EM>City</EM></TH></TR> <TR> <TD>Starflower</TD> <TD>8172</TD> <TD>San Francisco</TD></TR> <TR> <TD>Melody</TD> <TD>5673</TD> <TD>San Pedro</TD></TR> <TR> <TD>Symphony</TD> <TD>3820</TD> <TD>Montreal</TD></TR></TBODY></TABLE> <TR> <TD>Column 1</TD> <TD>Column 2</TD> </TR> </TABLE> |
|
#4
|
|||
|
|||
|
Re: Html Colour box backgrounds
This is what you have so far.... see screenshot...
What do you want to do now? I guess I don't quite understand your question... Last edited by Lchad; Jun 17th, 2007 at 11:22. |
|
#5
|
|||
|
|||
|
Re: Html Colour box backgrounds
i think he wants it tighter together. you gotta work on your cellpadding and cell spaceing. Also if you want it like the bbc page you wanna use css. thats what they use. you can learn it in a week so get on it. go to https://www.w3schools.com you'll learn everything you'll ever need. and once you learn it you only have to use the code one per area.
|
|
#6
|
|||
|
|||
|
Re: Html Colour box backgrounds
border-collapse: collapse; <--- mmmmmm
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#7
|
|||
|
|||
|
Re: Html Colour box backgrounds
All I'm trying to get is a coloured box on which I can place whatever picx/text.
I'd like to be able to accurately control the size, colour & border. Maybe use a few in one page to seperate areas. Is there a shortcut to this or do I need to do CSS as Daygon suggests? Appreciate you help guys. Paddywhack. |
|
#8
|
|||
|
|||
|
Re: Html Colour box backgrounds
Here's a table sample
But using tables is not recommended. It's yesterdays way of handling web design. So instead of spending time learning something old (above) Go here to see how to do it in today's standards. Last edited by Lchad; Jun 17th, 2007 at 11:22. |
|
#9
|
|||
|
|||
|
Re: Html Colour box backgrounds
Yeah use css like i said. BBC does it why cant you?<--- british css slogan
|
![]() |
| Tags |
| html, colour, box, backgrounds |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| two backgrounds! can it be done? | christopher | Web Page Design | 6 | Mar 9th, 2008 11:20 |
| web backgrounds | danny322 | Graphics and 3D | 3 | Mar 7th, 2008 09:38 |
| Hmm I Need Two Backgrounds !! | bruno89 | Web Page Design | 8 | May 11th, 2007 14:26 |
| Backgrounds in Javascript | Jaken Veina | JavaScript Forum | 1 | Jan 22nd, 2007 11:51 |
| Web Backgrounds | jimz | Graphics and 3D | 12 | Mar 8th, 2006 22:27 |