473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Inherit from previous class

Hi again,

Still working to get my knowledge up to par, so don't get discouraged by
this post. Now, after reading your answers to the [New to css, trouble
understanding cascading] thread, I don't use Ids anymore but classes. I
wanted to know if it was possible to combine classes or do I have to
recreate a new one for everything I want ?

Example:
[These are from my .css file]

td.boxedInfoLeft{
border-left:3px solid black;}

td.underLinedInfo{
border-bottom:1px solid silver;}

Is there an other way of combining the two previous or the best way of doing
that is to declare a new one and combining them n the class directly

td.underLinedInfoBoxedLeft{
border-bottom:1px solid silver;
border-left:3px solid black;}

TIA

CheGueVerra
Jul 21 '05 #1
2 1718
"CheGueVerra" <br**********@notgtechna.com> wrote:
Still working to get my knowledge up to par, so don't get discouraged by
this post. Now, after reading your answers to the [New to css, trouble
understanding cascading] thread, I don't use Ids anymore but classes.
id's are useful when used correctly.
I
wanted to know if it was possible to combine classes or do I have to
recreate a new one for everything I want ?

Example:
[These are from my .css file]

td.boxedInfoLeft{
border-left:3px solid black;}

td.underLinedInfo{
border-bottom:1px solid silver;}

Is there an other way of combining the two previous or the best way of doing
that is to declare a new one and combining them n the class directly


You can assign multiple classes to an element, separate them with a
space, example:

<td class="boxedInfoLeft underLinedInfo">

--
Spartanicus
Jul 21 '05 #2
> id's are useful when used correctly.
Can you please demonstrate what is a good condition to use them?

You can assign multiple classes to an element, separate them with a
space, example:

<td class="boxedInfoLeft underLinedInfo"> I'll try that tomorrow
Spartanicus


CheGueVerra
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.833 / Virus Database: 567 - Release Date: 12/01/2005
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: nikolai.onken | last post by:
Hello, I got following problem trying to inherit a variable from another class class Core { public $obj; function initialize($obj) {
4
by: erik | last post by:
Is it posssible to inherit the previous pages (parent pages) background image? Is there a script out there I could look at? Thanks
7
by: bobsled | last post by:
For class A to reuse functionality of a class B, A could either contains B or inherits from B. When should pick which? In a book the author says that "Don't inherit from a concrete class." Does...
4
by: Slavyan | last post by:
(I just started to learn C#.NET) What's the syntax in c# for a class to inherit more than one class. I know following syntax: public class MyClass : MyOtherClass { } but I need to inherit...
6
by: Mohammad-Reza | last post by:
I wrote a component using class library wizard. In my component i want to in order to RightToLeft property do some works. I can find out if user set this property to Yes or No, But if He/She set it...
5
by: john conwell | last post by:
I'm trying to make a class that already inherits from a base class, also inherit from an interface in managed C++. so my interface looks like so: __gc interface ITask { __property String*...
7
by: Frank | last post by:
Hi, a question probably asked before, but I can't find the answers. Base class X, classes A, B and C inherit class X. In class A I do not want to inherit property (or function or method) P1....
3
by: J | last post by:
I tried to inherit 'Shot' class from 'Image' class, only to fail. It gives me the CS0122 error, which says that it can't access 'System.Drawing.Image.Image()'. What am I missing? using...
2
by: Joe | last post by:
Is it possible to inherit from a UserControl? If I try my user control class is not recognized. Thanks, Joe
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.