Forum Moderators: not2easy

Message Too Old, No Replies

A Few Small Problems

as title

         

Scrimbler

4:48 pm on Dec 8, 2004 (gmt 0)

10+ Year Member



1) Table Border Problem
In my CSS I have set it so that tables have a border of "0". I did this using the following code:

table {
border: 0;
}

but there is one table in my xhtml that requires to have a border of 2 along with several other properties. Due to the fact it isnt just the border i'm changing i though about creating a class for the specific table. The only trouble is that when i enter the border property as 2, it does not change the table that the class is linked to. this is the code i used for that:


table.t-mainbody {
height: 435px;
width: 600px;
border: 2;
}

How can i overcome this?

--------------------------------------------------------------------------------------------------------------

2) Font/Text Color Problem
In my CSS I would like to set the font color used in my body to white (#ffffff), and the same for a particular cell (td) if possible. i have tried things like:

td.td-mainbody {
padding: 15px;
text-align: left;
vertical-align: top;
font-size: 13px;
font-family: verdama, arial, helvetica, sans-serif;
font-color: #ffffff;
}

td.td-mainbody {
padding: 15px;
text-align: left;
vertical-align: top;
font-size: 13px;
font-family: verdama, arial, helvetica, sans-serif;
color: #ffffff;
}

but i'm having no luck. Any tips on what should be doing?

--------------------------------------------------------------------------------------------------------------

3) HTML opening new window?
I have a hyperlink that i want to open in a new window. I would also like to control the size of the window opened if possible since it is a picture and therefore i would like to open it to the size of the picture (320 x 240). Also if it isnt too much trouble i'd like to have none of the toolbars, nav bars, menu bars appear on the opened link window. I would like to do this using just html/xhtml or even css if possible. Is this feasible or do i need to use javascript to do this?
--------------------------------------------------------------------------------------------------------------

Many Many thanks to anyone who can help! I apprciate my questions are relatively trivial compared to the majority of enquiries in this forum, so i apologise for clogging it up with my basic questions.

Cheers,

Scrimbler

DrDoc

6:30 pm on Dec 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



1)
enter the border property as 2
Two "what"? ;) Also, the shorthand
border
property has three different values that all may need to be set: width, style, color.

Try something like this:

border: 2px solid black;


2)

font-color
won't work... But
color
should. How do you assign the class name?

<td class="td-mainbody">
?


3) If you want to control the properties of the window, you will need JavaScript [webmasterworld.com] for that...

Scrimbler

6:35 pm on Dec 8, 2004 (gmt 0)

10+ Year Member



thanks for those doc, everything's a-ok now!