Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 860 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Help Coding

Thread title: Help Coding
Closed Thread    
    Thread tools Search this thread Display Modes  
02-21-2005, 09:15 PM
#1
Michael is offline Michael
Michael's Avatar
Status: Senior Member
Join date: Dec 2004
Location:
Expertise:
Software:
 
Posts: 845
iTrader: 0 / 0%
 

Michael is on a distinguished road

  Old  Help Coding

Hey everyone,

I need help making the following a background for my content area. The content will go as far as the gradient horizontal bar, and the bar should extent as more code is added. I hope you guys understand what I mean.

02-22-2005, 02:05 AM
#2
Michael is offline Michael
Michael's Avatar
Status: Senior Member
Join date: Dec 2004
Location:
Expertise:
Software:
 
Posts: 845
iTrader: 0 / 0%
 

Michael is on a distinguished road

  Old

*bump* anyone?

02-22-2005, 12:14 PM
#3
kiswa is offline kiswa
Status: Junior Member
Join date: Feb 2005
Location: Florida
Expertise:
Software:
 
Posts: 91
iTrader: 0 / 0%
 

kiswa is on a distinguished road

  Old

What are you using for layout? CSS I hope. If so, just style a div like so:
Code:
#background_div {
     /* whatever styles you need for the font, etc go here too*/
     /* Set the background and repeat vertically */
     background: url(code.gif) top left repeat-y;
     /* Pad the right side so the text doesn't go over the
         area it shouldn't (the other numbers are so you can
         set other padding [top right bottom left]) */
     padding: 0 45px 0 0;
}
That'll do it for you. If you used tables, the same would apply for the table element you used.

02-23-2005, 02:28 AM
#4
Michael is offline Michael
Michael's Avatar
Status: Senior Member
Join date: Dec 2004
Location:
Expertise:
Software:
 
Posts: 845
iTrader: 0 / 0%
 

Michael is on a distinguished road

  Old

Thanks ! I get a bit comfused with these backgrounds and such.

02-23-2005, 03:44 AM
#5
Michael is offline Michael
Michael's Avatar
Status: Senior Member
Join date: Dec 2004
Location:
Expertise:
Software:
 
Posts: 845
iTrader: 0 / 0%
 

Michael is on a distinguished road

  Old

nevermind i figured it out, i needed the width in there.

02-23-2005, 12:15 PM
#6
kiswa is offline kiswa
Status: Junior Member
Join date: Feb 2005
Location: Florida
Expertise:
Software:
 
Posts: 91
iTrader: 0 / 0%
 

kiswa is on a distinguished road

  Old

Glad I could help (even if only to remind you to add width).

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed