answersLogoWhite

0

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.

423 Questions

Which browsers support CSS?

All major browsers support CSS2; however, IE is kind of weird in its box model implementation.

What can you use cascading style sheets for?

Cascading Style Sheets, or CSS, is used to control the presentation of a document's markup. This allows you to write one rule and use that rule multiples times within one document or across numerous documents. If you need to make a change, you change just that one rule and the changes are presented across all of the documents.

How can you use div under div?

It's not that hard. If this is what you mean:

<div>

<div>

<h1>Some content</h1>

</div>

</div>

How do you create a paragraph using style based on is Normal style for following paragraph is Normal Font properties are Arial 14 pt Bold and font color red accent 2 darker 50 percent?

For the paragraph itself in HTML:

<p class="paragraphName">text you want in the paragraph</p>

To style it in CSS: in the documents <head> tag

<style type="text/css">

.paragraphName {

font-family:Arial, Sans-serif;

font-weight:bold;

font-color:#000000 <---- give it the RGB red accent 2 darker 50%

}

</style>

And that should do it!

What are the different types of CSS?

Versions is more appropriate; that would be 1.0, 2.0 and 2.1 currently.

What is a source code for memrise?

The Memrise website content, including program source code, is owned by Memrise Inc. Being proprietary intellectual property, the source code is not available within the public domain and therefore cannot be published here.

Which is the latest version of CSS?

There are several CSS modules that have reached the W3C Recommendation level (think standard) and are in use today. You have CSS Level 2 Revision 1 (CSS2.1) [this was the last unified CSS specification, all future updates are modules]. CSS3 modules that have reached the Recommendation level include:

  • CSS Color Level 3
  • CSS Namespaces Level 3
  • Selectors Level 3
  • CSS Print Profile
  • Media Queries
  • CSS Style Attributes

The members of the CSS&FP Working Group have decided to modularize the CSS specification. This modularization will help to clarify the relationships between the different parts of the specification, and reduce the size of the complete document. It will also allow us to build specific tests on a per module basis and will help implementors in deciding which portions of CSS to support. Furthermore, the modular nature of the specification will make it possible for individual modules to be updated as needed, thus allowing for a more flexible and timely evolution of the specification as a whole.

How do you position tables so that they are adjacent to each other using CSS?

Option 1:

You can place 2 HTML tables side by side using CSS by setting the float of your table elements to left

table{

float:left;

}

Option 2:

You can place each table inside it's own

element and set each div to float:left; or display:inline;

Option 3:

You can set one table float to left and the other table float to right.

.table1{

float:left;

}

.table2{

float:right;

}

What is em in css?

em is the scale of a font size, 1em is the native size (usually 12pt.)
for example, with the statement "font-size:2em;", the font will be twice the size, which is quite large.

If you use it twice, such as:



Hello World!




The font size of "Hello World!" will be 3em.

other font sizes you can use are pt and px.

What is monodic style?

Term sometimes used as synonym of monophony-monophonicmus. or for acc. solo song, but properly it is a particular kind of acc. solo song which developed c.1600 as a reaction against 16th‐cent. polyphonic style. It is distinguished by recit.‐like, sometimes florid, v.‐part and figured‐bass acc. The members of Bardi's camerata-musicin Florence wrote in monodic style, Caccini publishing a coll. of monodies, Le nuove musiche, in 1602. By 1613 it was adopted for instr. mus. e.g. in trio sonatas of Rossi and Marini.

How to create thumbnail images using HTML and css?

Thumbnail images can be made using HTML and CSS. HTML will import the image and CSS would give the thumbnail style.

Why are style sheets preferable to presentational attributes?

Style sheets are preferred over the now mainly deprecated presentational attributes because of the desire to separate content and markup from presentation. Presentational attributes have to be set every time you want to use them on an element, whereas with style sheets you declare them once and your done. Also, with style sheets you have more fine-grain control over the style of your site then you could ever achieve with presentational attributes.

What is CSS Box Model?

Go to a website called W3 Schools and search for Box model, they provide a great example.

What is div id equals about?

The id element in a stylesheet is a unique (can only be used once on a page) identifier for that specific element. It has higher precedence the a class. An id will have a "#" in front of it and a class will have "." in front. The class has lower precedence but can be used multiple times on a page.

Which characters can CSS-names contain?

The CSS-names; names of selectors, classes and IDs can contain characters a-z, A-Z, digits 0-9, period, hyphen, escaped characters, Unicode characters 161-255, as well as any Unicode character as a numeric code. The names cannot start with a dash or a digit. (Note: in HTML the value of the CLASS attribute can contain more characters).

You have no background images or colors?

This is pulled from one of my stylesheets.

body {

background-image: url(brnbak02.gif);

background-repeat: repeat;

background-color: #cfe3ff;

font-size: 12pt;

font-family: "Times New Roman", serif;

margin: 0;

padding: 0;

}

What Styles can you use to hide an object on a webpage?

  • No link to all categories
  • Sorts the list of Categories by the Category name in ascending order
  • Does not show the last update (last updated post in each Category)
  • Displayed in an unordered list style
  • Does not show the post count
  • Displays only Categories with posts
  • Sets the title attribute to the Category Description
  • Is not restricted to the child_of any Category
  • No feed or feed image used
  • Does not exclude any Category and includes all Categories
  • Displays the active Category with the CSS Class-Suffix ' current-cat'
  • Shows the Categories in hierarchical indented fashion
  • Display Category as the heading over the list
  • No SQL LIMIT is imposed ('number' => 0 is not shown above)
  • Displays (echos) the categories
  • No limit to depth
  • All categories.
  • The list is rendered using the Walker_Category class

What does a v look like in cursive?

There is only Italic, not cursive unless you are able to enbed a cursive font (possible.)

What is the difference between XHTML and CSS?

XHTML and CSS are both languages that are used to make web pages.

XHTML is very similar to HTML and serves the same purpose. XHTML & HTML are both used to set the structure of the page - to define images, links, text, headlines, etc.

CSS (Cascading Style Sheets) is used to define the style of the page - colors, spacing, etc.

If you were to think of a web page as a person, XHTML would be the skeleton, and CSS would be the skin, clothing, make-up, etc.

Can A style sheet can contain many Cascading style sheet rules and their properties?

Yes. A single style-sheet can contain hundreds or even thousands of rules. (If you have thousands of rules, you should probably split them up for the sake of download time.) But there is no theoretical limit on the size of a CSS stylesheet file that doesn't apply to any other file.

How do programmers deal with CSS overflow?

CSS overflow is used by programmers to still use a box when the content inside is too large for it. Scroll bars and hidden content are commonly used to help this problem.