chnaging the background color

This is a discussion on "chnaging the background color" within the Web Page Design section. This forum, and the thread "chnaging the background color 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 May 20th, 2006, 19:37
Junior Member
Join Date: Jul 2004
Location: Bulgaria
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
chnaging the background color

i am trying to define the background of some elements ( independently of the current background)

i have tried using relative positioning but both the color and the positioning is all wrong

can anyone please tell me how i should do it.

thanks




I now have this code - (below) but the positioning is NOT relative !

i assume that the div s that are contained within the layer3 div should be positioning relative to layer3 ? so div2 should be to the right of div1

and div4 should be to the right of div3

and both positioned below div1 and div2.

Well they are NOT they are just stacked up each div under the previous div

Also they should ALL be having a yellow background - but only div1 and div2 have the background color !

i am pretty confused by this !?! does relative positioning not work - or what have i done wrong ?

VERY much appreciate it if you can tell me how to do this !

BTW - these div's are all inside a Form - but no other div.


<!-- START OF LAYER 3 -->
<div id= 'layer3' style='background-color: #ffff00;width:260px;position:absolute;left:10px; top:300px;' >

<div id="div1" style='width:240px;position:relative;left:10px; top:10px;' >
Agency name:<br>
<span class="det1">If you are acting as an agent for the company -
please put your agency name. If not, leave as 'Private'.</span>
</div>


<div id="div2" style='width:200px;position:relative;left:120px; top:4px;' >
<input type="TEXT" name="x_agent" value = "<?php echo $N_agent ?>"
size = '15' maxlength='40'/>
</div>

<div id="div3" style='width:240px;position:relative;left:10px; top:90px;' >
Your reference:<br>
<span class="det1">If you have several adverts running
you may want to use reference numbers. You can use numbers or letters. (optional)</span>
</div>

<div id="div4" style='width:200px;position:relative;left:120px; top:84px;' >
<input type="TEXT" name="x_opt_yr_ref" value = "<?php echo $N_opt_yr_ref ?>"
size = '15' maxlength='20'/>
</div>

</div> <!-- END OF LAYER 3 -->
Reply With Quote

Reply

Tags
chnaging, background, color

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
background color in xml kool77 Other Programming Languages 2 Jul 7th, 2007 15:30
background-color kapyrossi Web Page Design 5 Jul 4th, 2007 15:53
IFRAME - background color jansoft Web Page Design 0 May 18th, 2007 11:21
background color kaz Web Page Design 4 Aug 4th, 2005 17:28
background color kaz Web Page Design 1 Apr 20th, 2005 11:43


All times are GMT. The time now is 04:06.


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