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.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
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.
Reply With Quote

  #2 (permalink)  
Old Jan 29th, 2007, 16:22
karinne's Avatar
SuperMember

SuperMember
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?
Reply With Quote
  #3 (permalink)  
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>
Reply With Quote
  #4 (permalink)  
Old Jan 30th, 2007, 11:21
SuperMember

SuperMember
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.
Reply With Quote
  #5 (permalink)  
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
Send a message via AIM to daygon Send a message via MSN to daygon Send a message via Yahoo to daygon
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.
Reply With Quote
  #6 (permalink)  
Old Jan 30th, 2007, 18:44
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,608
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Html Colour box backgrounds

border-collapse: collapse; <--- mmmmmm
__________________
I've got <style> and .class
Reply With Quote
  #7 (permalink)  
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.
Reply With Quote
  #8 (permalink)  
Old Jan 31st, 2007, 11:49
SuperMember

SuperMember
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.
Reply With Quote
  #9 (permalink)  
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
Send a message via AIM to daygon Send a message via MSN to daygon Send a message via Yahoo to daygon
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!
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 22:01.


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