Results 1 to 7 of 7

Thread: Cascading Style Sheet Problems!

  1. #1

    Thread Starter
    Lively Member Brandito's Avatar
    Join Date
    Nov 2000
    Location
    Here, There, Every Where!
    Posts
    106

    Cascading Style Sheet Problems!

    Hey guys... I have looked over the net and could not find the answers to these very simple .css questions! I was hoping someone that knows about this stuff could help me.

    First off I can not find a
    {cellpadding: 0; cellspacing: 0} type of command for my tables.
    Do they exist?

    Secondly, I am wanting to add the SRC of an image in the .css. It is not working on IE... is {src: "myimage.jpg";} the wrong command? I guess so.

    Lastly, I am wanting to add Alternative Text for an image in the .css. I can not find out what to use. {alt: "text";} does nothing.

    If you guys have any answers to those.. I would greatly appreciate them!

    Thanks,
    Brandito
    Master of Cyber Fu - A Temple of Digital Chi

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Cascading Style Sheet Problems!

    Originally posted by Brandito
    Hey guys... blah blah blah blah


    First off I can not find a
    {cellpadding: 0; cellspacing: 0} type of command for my tables.
    Do they exist?
    {padding: 0;
    border-spacing: 0;
    border-collapse: collapse;
    }




    Secondly, I am wanting to add the SRC of an image in the .css. It is not working on IE... is {src: "myimage.jpg";} the wrong command? I guess so.
    { url('image.jpg'); }



    Lastly, I am wanting to add Alternative Text for an image in the .css. I can not find out what to use. {alt: "text";} does nothing.
    http://www.w3schools.com/css/pr_gen_content.asp I'm not sure, but this link might help.

  3. #3
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    The last two questions I think Brandito you've kind of misunderstood CSS a little bit. It's not supposed to totally replace HTML attributes, basically just non structuraly ones. So you should still use SRC and ALT, just things like background colour, foreground colour, width, height. etc.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    But you could still use the img for things such as table and page backgrounds.

  5. #5
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Oh yeah, for that kind of thing that's what CSS is there for (especially when the image is purely aesthetic, i.e. not related to the content). I thought that Brandito meant how to get images appearing for an img element, without using the SRC attribute.
    Last edited by Rick Bull; Feb 6th, 2003 at 08:51 AM.

  6. #6

    Thread Starter
    Lively Member Brandito's Avatar
    Join Date
    Nov 2000
    Location
    Here, There, Every Where!
    Posts
    106

    ok

    OK... I am using IE 6
    I was trying to put the src of an image into a .css file... but I can get around that for what I am doing. The url(); does not work by the way.

    The only problem I am having is with Cell Padding.
    padding: 0; does not work.
    border-spacing: 0; doesn't appear to do anything collapse doesn't do.
    border-collapse: collapse; this command actually works really well, and I knew about it before I posted my comment... but I still see a VERY thin white line around my table (padding). When I hard code cellpadding=0 it is fixed. None of the other CSS commands fix it. So I don't know if they are not supported or what.

    Thanx
    Brandito
    Master of Cyber Fu - A Temple of Digital Chi

  7. #7

Posting Permissions

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



Click Here to Expand Forum to Full Width