navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

EXCLUDE TABLES FROM CSS

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> EXCLUDE TABLES FROM CSS
Page: [1]
 
j.figee

 

Posts: 2
Joined: 7/24/2003
Status: offline

 
EXCLUDE TABLES FROM CSS - 7/24/2003 4:37:42   
hI THERE...

I have a very simple question, the one everybody knows, so I think..

I just started learning and using css... (its great)
I make a table in html and add a picture (main-background) to it in css.
In the html page I use different tables, but since I added a picture, all tables get that same picture... :-(

So... How do I exclude the picture in the other tables. I don' t care wether I do this in html or in css - as long as my forms and all the other tables don' t get the same picture ....

Hope you wanna help...
thanx.

figidigi
abbeyvet

 

Posts: 5095
From: Kilkenny Ireland
Status: offline

 
RE: EXCLUDE TABLES FROM CSS - 7/24/2003 6:05:26   
Apply a class to the table you want to have the background image.

So, perhaps call it class=imagebg

Then where you have the styling for the table in your CSS put this

table.imagebg {<stuff>}

And where you want the table to have a bg on the page, call the class:

<table class=" imagebg" >

_____________________________

Katherine

:: InKK Design :: InKK Domains

(in reply to j.figee)
j.figee

 

Posts: 2
Joined: 7/24/2003
Status: offline

 
RE: EXCLUDE TABLES FROM CSS - 7/25/2003 5:04:43   
Hi Katharine...

I think I used the wrong button [mal instead of postreply] so that why I mailed instead of putting on the website.

Your tips, thanx to my line of questioning, finally worked. Your first answers just weren' t clear and complete enough. But I followed the extra' s you forgot to mention earlier and that did the trick. That' s great. Thank you.

I have a tip for you too... (in my area of expertice) Please watch what you write in mails cause things like ' you haven' t quite grasped it' are not really professional to write down. So its a good thing it wasn' t posted here...
Also there are some more things you wrote down, I found quite strange but I will leave it at this.

figidigi

(in reply to j.figee)
abbeyvet

 

Posts: 5095
From: Kilkenny Ireland
Status: offline

 
RE: EXCLUDE TABLES FROM CSS - 7/25/2003 5:21:16   
I am glad you got your problem sorted.

However I really fail to see what is wrong with " you haven' t quite grasped it" . it was clear to me from your email that you hadn' t, and nothing in the world wrong with that. And it was not a professional email, you were not paying me, I was taking time out of my (quite busy) day to write a long email to a total stranger in an effort to assist with a problem. I am sorry if you found anything I said strange, but pleased that it helped


quote:

So its a good thing it wasn' t posted here


Well, not really. As I pointed out in my email it is generally better to post followups here so that others can read how the issue was resolved. It helps especially if someone is later searching on the same or a similar topic. So, for the sake of completeness, here is what I said in the (strange) email:

quote:

No, you have not quite grasped it.

Your entry in the CSS would read, basically,

table.imagebg {border:1 dashed #808080}

However as you want an image in the background,
you will need to add that as well

so
table.imagebg {border:1 dashed #808080;
background-image:url(images/image.gif);}

Then in your html., it will be as I said before,
exactly

You opening table tag will be

<table class=" imagebg" >
<tr><td>

You cannot have two opening table tags, so the
other stuff will go in there also

eg

<table class=" imagebg" border=" 1" width=" 100%" >

I really cannot go into a full explanation of
classes here. There is an intro to them in the CSS
tutorial at OutFront, if this makes no sense to
you I think a little time learning how to apply
classes in general will clarify things.

You need only one CSS. Having said that, styling
tables like this is not really something that is
much documented in CSS, since in theory by using
CSS you largely get rid of the need to use tables
for layout, reserving them for the display of
tabular data.

Also, while I do not mind answering by email, it
is really far better to post follow up questions
at the forum so that others can see and benefit
from them also.


The only thing I would change in that is to say that when I said that styling tables is not much documented, I should have just said that I was not aware of much documentation on styling them. Perhaps someone else is aware of some good resources on this?

< Message edited by abbeyvet -- 7/25/2003 6:26:44 AM >


_____________________________

Katherine

:: InKK Design :: InKK Domains

(in reply to j.figee)
Gil

 

Posts: 7533
From: North Carolina, USA
Status: offline

 
RE: EXCLUDE TABLES FROM CSS - 7/25/2003 7:45:08   
quote:

I have a tip for you too... (in my area of expertice) Please watch what you write in mails cause things like ' you haven' t quite grasped it' are not really professional to write down. So its a good thing it wasn' t posted here...
Also there are some more things you wrote down, I found quite strange but I will leave it at this.


Excuse me? I fail to see why the statement, ' you haven' t quite grasped it' os a problem - it was accurate, concise and relevant. And what else is " strange" in Katherine' s email?

_____________________________

Gil Harvey, 1947-2004

(in reply to j.figee)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> EXCLUDE TABLES FROM CSS
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts