CSS Cascading Style Sheets

A widely used style sheet language, the Cascading Style Sheets (CSS) describes the layout of HTML, XHTML, and XML documents. CSS separates the presentation from the content of the document to provide accessibility and flexibility.

1,436 Questions
CSS Cascading Style Sheets

How do you apply a CSS class to a tag?

"class" is an attribute of most if not all HTML tags. To apply a CSS class to a tag, simply make the class attribute equal to that CSS class.

For example, suppose you have a CSS class called bigRed that makes text large and red. If you want to apply it to a certain text, just put it in a tag surrounding that text.

e.g.

. . . but my <span class='bigRed' >car</span> was faster than . . .

139140141
CSS Cascading Style Sheets
HTML
The Difference Between

What is the difference between HTML and CSS?

HTML is a widely accepted web-design language. With HTML, you surround a block of text with “tags” that indicate how the text should appear or what purpose it has in a document. Cascading Style Sheets (CSS) make it faster and easier to create and maintain websites. CSS works with HTML (or any markup language) to apply a uniform style and format to your website. CSS allows you to set your site’s fonts, colors, layouts and more without repeating the HTML formatting tags throughout. SSL

596061
Computer Networking
Web Design and Publishing
CSS Cascading Style Sheets

The difference between a website and a webpage?

Very simply, a website is a collection of one or more web pages designed to convey information on a particular subject or theme to a web user. (e.g. a company will have a web site providing structured information about the company, designed to inform particular groups of its stakeholders - investors, customers, technical support, sales, employment, news items etc.)

A web page is one screen full of information (from a web site) that may contain links to other pages in the web site or links to external information. The web page will normally be written as (or rendered as) an HTML document.

474849
CSS Cascading Style Sheets

Where you have to save the css file?

You have to provide a valid path in your HTML file so it can "see" the style sheet.

If you have a simple site, put your style sheet(s) (e.g. "styles.css") into the same directory as your HTML files and refer to them like this:

<link rel="stylesheet" href="styles.css" type="text/css" />

however, you can put your style sheets wherever you please, as long as you refer to them correctly. They might even be in other domains. For simple projects, keep everything in one place, so you can avoid headaches when moving your projects around.

899091
CSS Cascading Style Sheets

How do you place tables in CSS side-by-side?

Try using float:right; on the second table to get it to the right of the first table. You could also use the position attributes. Another thing to do to put tables side by side by just using HTML, is to put the two tables into another table. So you would have a main table with one row and two cells, with a table in each of those two cells.

858687
CSS Cascading Style Sheets

How do you capitalize first letter with CSS?

Let's say you were wanting to capitalize the first letter of every list item in ordered and unordered lists. You would use the :first-letter pseudo-element. The CSS rule would look like the following:

li:first-letter {

text-transform: capitalize;

}

777879
Web Design and Publishing
CSS Cascading Style Sheets
HTML

What does a div tag do in HTML?

A Div tag can be used for formatting a block of text, images, other divs or any other element of a website, even if these elements are included within some other tag. Anything inside a particular div will follow its CSS properties unless you don't specifically change it. Its like a box in which you can add any HTML element, a webpage usually have many divs to create a the layout. The placement and size of the div can be controlled by CSS. The content of the tag <div> always begins with a new line as it is a block based tag. There is also line folding after it.

717273
CSS Cascading Style Sheets
HTML

When you use styles in the to apply defined formats to text?

You can use a style sheet to format text by the following examples:

font-family: Arial; Changes the font to Arial Font in that Div.

text-decoration: underline; Underlines text in that Div.

font-weight: bold; Bolds text in a Div.

color: #000; Changes the color of text in a Div.

656667
CSS Cascading Style Sheets

How will you display text as superscript in CSS?

Examples:

span.raise { vertical-align: super; }

span.lower { vertical-align: sub; }

selector_name.raise { vertical-align: super; }

selector_name.lower { vertical-align: sub; }

636465
Microsoft Windows
CSS Cascading Style Sheets

What is the best WYSIWYG program for editing CSS?

"Best", of course, carries many factors.

Someone who is looking for something top-notch in performance and feel should get a program such as Dreamweaver, by Adobe. The most recent version, CS4, has become the industry standard, and is great for creating webpages. It's a bit pricey to buy, but many users are very proud of their websites created with this program.

Someone who is looking for a simple editor with a decreased budget can still get very dynamic things. The browser FireFox, for one, has a free web developer toolbar that creates a live-editing CSS with a what-you-see-is-what-you-get look and feel, with any website you've navigated to - locally or on the world wide web.

If you really don't want to pay for the software, try EvrSoft First Page, Migajek HateML or Microsoft Visual Web Developer Express.

I would definitely recommend Adobe Dreamweaver CS4. Its the industry standard.

636465
CSS Cascading Style Sheets

What is Internal Style sheet?

An internal style sheet is located inside the header tag of an HTML or similar markup language. The CSS rules located in the internal style sheet take a higher precedence then rules located in an external style sheet. Typically, an internal style sheet is used when the rules you are writing are only being used on that one page, or you are needing to override particular rules on just one page.

575859
CSS Cascading Style Sheets

When was the first CSS released?

According to wikipedia CSS1 was released in December 1996. CSS2 in November of 1997 and CSS is still being worked on.

495051
CSS Cascading Style Sheets

Do font family names need to be capitalized in css?

No. It is not mandatory. As long as they are spelled right, they should work.

454647
CSS Cascading Style Sheets

What does cascade from CSS mean?

Certain atrributes in the declaration are inherited from in which they reside. Therefore these are said to cascade down from parent to child.

414243
CSS Cascading Style Sheets
HTML

What styles do you use to apply defined formats to text?

Texts can be used by many styles to be applied. font-color, font-margin, padding etc are some of the defined styles.

123
CSS Cascading Style Sheets
Satellite Internet
HTML

Can you create div in textarea in HTML?

No you can't. While you can put div tags inside textarea tags, as anything in the textarea is treated only as text, the browser will ignore the div tags and they will show as text only and so have no impact. So if you do want sections for text, you would have to look at other ways of doing it, like having several text areas with different formatting.

012
CSS Cascading Style Sheets
HTML
The Difference Between

What is the difference between the Class attribute and the ID attribute in HTML and CSS?

In HTML, the class attribute is an identifier used on one or more elements on a web page. On the other hand and ID is an identifier that is unique and applies to only one element instance. In other words, a class can appear on multiple elements throughout a single document whereas an ID can be used once and only once in the document. In CSS, a class selector is declared using the dot symbol (for example .class-name) whereas an ID selector is declared with an octothorpe (#) symbol (for example #id-name).

012
CSS Cascading Style Sheets

When is it appropriate to use external internal and inline CSS in a website?

External CSS style sheets are appropriate when the same rules are going to be used on multiple pages of the same site. Internal CSS is appropriate when the rules are only being used on that one page or your are needing override the rules of the external style sheet on just that one page. Inline CSS should be used sparingly, but the most common and appropriate usage is when you are needing to override rules located in either an internal or external CSS style sheet one time for one element on one page.

394041
Microsoft Word
CSS Cascading Style Sheets

How will you add styles to a document?

There are 4 ways to add a CSS doument to a HTML document.

You can "link" to it putting the following into the head of your HTML.

<link href="FileLocation/screen.css" rel="stylesheet" type="text/css" media="screen" />

or you can "Import it" it.

<style type="text/css" media="screen">

@import url("FileLocation/screen.css");

</style>

Or you can place the CSS directly into the HTML into the head of your HTML

<style type="text/css" media="screen">

Your CSS Goes here

</style>

Or you can place it in-line with each element using the style tag, if you only have a little bit of CSS.

<a href="index.html" style="color:#006bb6; font-weight:bold;">Home</a>

363738
CSS Cascading Style Sheets
HTML5

What are inline styles embedded styles and external style sheets?

Inline styles occur by declaring a style within a separate tag. Embedded styles are declared on the page within the head element. External styles are referenced with an anchor in the head element but are separate from the HTML.

Of course, specificity comes into play depending on the type used.

353637
CSS Cascading Style Sheets
HTML
HTML5

What are the features of HTML?

HTML is a basic thing, but is extremely important.

The main feature is that it designs the basic frame of any webpage, then, you can enhance the webpage even more by using CSS (Cascading Style Sheets) and JavaScript.

373839
Computers
CSS Cascading Style Sheets

Is the order of style declarations important?

Yes. The order of rules in a stylesheet is very important. If you have a rule on line 5 stating that all paragraphs have a color of blue, and on line 10, you have a rule stating that all paragraphs have a color of red, all of the text inside a paragraph will be red. That is assuming that the selectors have the same weight.

293031
CSS Cascading Style Sheets
Photoshop
HTML

How do you make a CSS template from a PSD file?

At present Photoshop does not support CSS when rendering a .psd file to HTML.

The only way to use a .psd in web design is to create the image you want displayed (navigation and all) and to then "slice" it in Photoshop. A great tutorial on this is the div tutorial at this site: [http://celestial-star.net]

Once you have created the sliced table of images, CSS can then be hard coded to replace the table, this task though would be a challenge for an expert CSS writer.

you can also import that PSD file into fireworks and slice in in fireworks and export it as CSS and images

293031
CSS Cascading Style Sheets
HTML

What does this error message mean 'Error the HTML may not contain absolute positioned tags because they break the Page Editor' and how do you fix the problem?

It means your HTML editor does not support elements that are positioned absolutely.

Solution: Use another HTML editor.

293031
Verbs
CSS Cascading Style Sheets
Higher Secondary Certificate HSC

The placement of an embedded image in an ad is an example of?

Subliminal advertising

789

Copyright © 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.