Free Web Hosting PHP/mySQL
GlobalWeb.com.ru Forum Index GlobalWeb.com.ru
Free Web Hosting :: Commercial Web Hosting :: PHP/mySQL :: CGI/Perl
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Style Sheets

 
Post new topic   Reply to topic    GlobalWeb.com.ru Forum Index -> HTML
Author Message
sfwweb



Joined: 09 Mar 2004
Posts: 66

PostPosted: Fri Mar 12, 2004 12:56 pm    Post subject: Reply with quote

Style sheets are pretty useful for large-scale projects. Do you know how to include a gradient image as a background for a table using style sheets?
Back to top
View user's profile Send private message
DutchMan



Joined: 07 Mar 2004
Posts: 66

PostPosted: Fri Mar 12, 2004 1:10 pm    Post subject: Reply with quote

An example:

Code:
table {
   background-attachment: fixed;
   background-image: url(images/top.gif);
   background-repeat: repeat;
   background-position: left top;
}


- DutchMan -
Back to top
View user's profile Send private message
espmartin



Joined: 04 Mar 2004
Posts: 177

PostPosted: Fri Mar 12, 2004 1:14 pm    Post subject: Reply with quote

You want to id the table, because if you have mulitple tables, you may not want all of them to have the background.
CSS:
Code:
<style type="text/css">
<![CDATA[
#test-table { background: transparent url(images/rsaclabel-172x30.gif) repeat left top;
]]>
</style>


HTML:
Code:
<table id="test-table">
   <tr>
      <td>test</td>
   </tr>
</table>

_________________
Best Regards,

Martin E.
San Francisco Bay Area & Central Valley
(Web) Web Design Standards - XHTML content, CSS presentation & Accessibility
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sfwweb



Joined: 09 Mar 2004
Posts: 66

PostPosted: Fri Mar 12, 2004 1:23 pm    Post subject: Reply with quote

THANKS! I've been looking for it all over on the internet! By the way, what size is the gradient supposed to be? Can it be anysize, let's say, 13 pixels by 100 pixels? Sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    GlobalWeb.com.ru Forum Index -> HTML All times are GMT
Page 1 of 1

 


Free Web Hosting, Commercial Web Hosting, PHP/mySQL Copyright © 2009
Free Scripts Directory | Free Software Downloads | Newsgroups Directory | Optel.net | Mirroraty | Cruised.net | Hardware Keylogger