|
-
Feb 5th, 2003, 05:08 PM
#1
Thread Starter
Lively Member
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
-
Feb 6th, 2003, 01:42 AM
#2
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.
-
Feb 6th, 2003, 06:08 AM
#3
Frenzied Member
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.
-
Feb 6th, 2003, 08:03 AM
#4
But you could still use the img for things such as table and page backgrounds.
-
Feb 6th, 2003, 08:48 AM
#5
Frenzied Member
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.
-
Feb 6th, 2003, 01:24 PM
#6
Thread Starter
Lively Member
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
-
Feb 6th, 2003, 03:01 PM
#7
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|