clear both? float?

Reply

Join Date: Mar 2006
Posts: 24
Reputation: Anax is an unknown quantity at this point 
Solved Threads: 0
Anax's Avatar
Anax Anax is offline Offline
Newbie Poster

clear both? float?

 
0
  #1
May 30th, 2006
Hia,
I'm trying to get a repeating image running along the bottom of the screen, starting when the central text stops. I feel I'm close...
http://www.awordinyourear.net/Links/

the code I've got now is;
HTML and CSS Syntax (Toggle Plain Text)
  1.  
  2. .centralbranches {
  3. position: absolute;
  4. left: 220px;
  5. top: 190;
  6. width: 65%;
  7. background-color: #EEDCF5;
  8.  
  9. }
  10. #centralbranchestext{
  11. margin-left: 6%;
  12. margin-right: 8%;
  13. margin-top: 40;
  14. margin-bottom: 259;
  15. z-index:10;
  16.  
  17. color: #333333;
  18. }
  19. #branchesbot{
  20. background-image: url(Background/BranchBottoms.gif);
  21. position: absolute;
  22. height: 259px;
  23. width: 100%;
  24. bottom: 0px;
  25. clear: both;
  26. float: left;
  27.  
  28. }
[html]
<div class="centralbranches">
<div id="centralbranchestext">
...copy...


</div>
<div id="branchesbot"></div>
</div>
[/html]

any help much appreciated

Anax
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: clear both? float?

 
0
  #2
Jun 2nd, 2006
Research the "background-image" and "background-repeat" CSS declarations.

Edit: sorry, I see you are using background-image. But "background-repeat" is likely what you want instead of float/clear.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 24
Reputation: Anax is an unknown quantity at this point 
Solved Threads: 0
Anax's Avatar
Anax Anax is offline Offline
Newbie Poster

Re: clear both? float?

 
0
  #3
Jun 5th, 2006
Thanks Mr. Greer but I tried the 'background-repeat' and couldn't get it to work. Below is the best I could get... not very elegant but seems to work for IE and Firefox:
HTML and CSS Syntax (Toggle Plain Text)
  1. #branchesbot{
  2. background-image: url(Background/BranchBottoms.gif);
  3. position: absolute;
  4. height: 277px;
  5. bottom: 0px;
  6. width:158%;
  7. left:-227px;
  8. margin-bottom:-9px;
  9. }
cheers
anax
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC