SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Now with customized title Jump's Avatar
    Join Date
    Sep 2002
    Location
    The Restaurant at The End of The Universe
    Posts
    1,423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS noobie question.

    I have been asked to help with the php/mysql programing on a site and of course I had to go looking into everything.[img]images/smilies/rolleyes.gif[/img]

    Well I found a bunch of
    No they also have a style css that is used. Me thinks this should be in there also. How would I go about adding all this to the style.css and then calling it in the column?
    Last edited by Jump; Aug 14, 2003 at 10:23.

  2. #2
    SitePoint Wizard
    Join Date
    Nov 2000
    Location
    Chico, Ca
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jump
    I have been asked to help with the php/mysql programing on a site and of course I had to go looking into everything.

    Well I found a bunch of

    Code:
    <td style="height:18px;background-image:url (/themes/default/gfx/menuSectionHead.gif);font-size:9px;font-weight:bold;padding-right:68px;text-align:center;vertical-align:topthemes/default/gfx/menuSectionHead.gif); font-size:9px;font-weight:bold;padding-right:68px;text-align:center;vertical-align:top;">
    No they also have a style css that is used. Me thinks this should be in there also. How would I go about adding all this to the style.css and then calling it in the column?

    In the stylesheet add a new class:
    PHP Code:
    td.background
    {
        
    height:18px;
        
    background-image:url (themes/default/gfx/menuSectionHead.gif);
        
    font-size:9px;
        
    font-weight:bold;
        
    padding-right:68px;
        
    text-align:center;
        
    vertical-align:top]themes/default/gfx/menuSectionHead.gif);
        
    font-size:9px;
        
    font-weight:bold;
        
    padding-right:68px;
        
    text-align:center;
        
    vertical-align:top;

    then call it in the HTML

    PHP Code:

    <td class="background"balh </td
    "Happiness doesn't find you, you find happiness" -- Unknown
    www.chuckknows.com

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,556
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Hi

    background-image:url (themes/default/gfx/menuSectionHead.gif);

    Note there should be no space between the url and the opening bracket . e.g. url( not url (.


    It should be:

    background-image:url(themes/default/gfx/menuSectionHead.gif);


    Also I don't think this next line is valid CSS, but I'm not sure what it's supposed to be!I think it should just be vertical-align:top

    vertical-align:top]themes/default/gfx/menuSectionHead.gif);




    Paul

    Edit:


    Sorry about the messy post but the message board didn't like it when I copied and pasted from the above post for some reason.(And I couldn't be bothered to write it out again )

  4. #4
    Now with customized title Jump's Avatar
    Join Date
    Sep 2002
    Location
    The Restaurant at The End of The Universe
    Posts
    1,423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yea, somehow it duplicated part of the code after vertical-align:top. That is where it ends. Thanks alot guys.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •