Html Colour box backgrounds

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.



 Subscribe in a reader

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

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Jan 29th, 2007, 16:16
New Member
Join Date: Jan 2007
Location: England
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 29th, 2007, 16:22
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Html Colour box backgrounds

What have you tried so far?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 29th, 2007, 16:27
New Member
Join Date: Jan 2007
Location: England
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
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>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jan 30th, 2007, 11:21
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jan 30th, 2007, 16:03
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jan 30th, 2007, 18:44
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Html Colour box backgrounds

border-collapse: collapse; <--- mmmmmm
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jan 31st, 2007, 11:28
New Member
Join Date: Jan 2007
Location: England
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jan 31st, 2007, 11:49
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Html Colour box backgrounds

Here's a table sample
Code: Select all
<table width="350" border="2" cellpadding="20" cellspacing="0" bordercolor="#FF0000" bgcolor="#FFCC00">
  <tr>
    <td><p align="center">You'd put <br />
      your images <br />
      or text in here. </p>
      
  </tr>
</table>
see screenshot

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jan 31st, 2007, 16:19
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Html Colour box backgrounds

Yeah use css like i said. BBC does it why cant you?<--- british css slogan heh im not british. SHHHH!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
html, colour, box, backgrounds

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


All times are GMT. The time now is 14:56.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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