answersLogoWhite

0

What does CSS source code look like?

Updated: 10/24/2022
User Avatar

Wiki User

15y ago

Best Answer

Here's some valid 2.1 - 3.0 CSS; it will work on Social Netorking Site profiles (like Myspace and Facebook) and general XML or (X)HTML documents (as well as any other documents that accept CSS styling). ---- /* This is a comment. These are generally used for guiding programmers. */ body { background-color: #000000; } /* First, let's set styles for the the three divisions with classes "container," "header," and "content" repsectively */ div.container { border: 1px solid #CCCCCC; width: 800px; height: auto; } div.header { border-bottom: 3px dotted #CCCCCC; height: 200px; } div.content { { background-color:#AAAAAA; color:#FFFFFF; font-family: Arial; font-size: 16px; } /* Let's add the same styles to multiple tags at once */ span.bigandblue, span.bigandblue { font-size: 72px; } /* We only want img tags that are inside the content div tag to have a border; however, img tags that are outside should not. Let's make that happen */ div.content img { border: 1px solid #000000; } /* Now let's set the styles of the tag with the id attribute of "logo" */ #logo { border:none; } /* The following uses psuedo classes, which are styles to be set depending on certain factors. Usually, they are dynamic. These deal with links, and changing their appearance depending on if they are hovered over, or have been visited. */ a:link, a:hover, a:visited, a:active { text-decoration: bold; color: #663399; }

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does CSS source code look like?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What do the effects of CSS look like?

Tags that are styled with CSS defining bold text may look like this. Tags that are styled with CSS defining italicized text may look like this. Tags that are styled with CSS defining text that is strike-through'ed may look like this.


What is the css code for posting a picture?

A picture (other than the background) is done in HTML. Borders and the like are controlled with CSS.


What is CSS File and why it is used?

A CSS file can tell the web browser how a web page is supposed to look. The web page (HTML file) itself says what words are on the page, and which pictures, but you CAN use the CSS file to specify what goes where, how big, what color and font, and things like that.You CAN also specify all those things in the HTML file. The biggest advantages of using separate CSS are:The same CSS file can be used for all pages in a site, so if you want to change something, you can just change it in one place, and all the pages will now look the way you want.If you use the same CSS file for every page, your pages will load faster, since the browser does not re-fetch the CSS file every time.


What is a CSS Layout Generator?

The CSS Layout Generator is a tool used to create website layout templates. It uses an on-line code known as CSS (cascading style sheets) which is a language used in formatting and the look of a layout.


What is an embedded style?

Embedded CSS simply means that your CSS is written in an external file (i.e. not in your HTML file). The external file can be anywhere on your server and must end in ".css". You would call this CSS file from inside your HTML file like this:On the otherhand, inline CSS is when your CSS is included inside of your HTML code, for example:foo

Related questions

Is Source Code the same as CSS Code?

It can be but source code is just the code of a webpage. Whatever format it is.


What do the effects of CSS look like?

Tags that are styled with CSS defining bold text may look like this. Tags that are styled with CSS defining italicized text may look like this. Tags that are styled with CSS defining text that is strike-through'ed may look like this.


What are the importants of css in HTML?

CSS provides styling to the code for interactiveness. It makes the webpage look good and classy.


What is the css code for posting a picture?

A picture (other than the background) is done in HTML. Borders and the like are controlled with CSS.


Written remarks in your HTML or CSS document which will not be displayed in the browser?

Comments are not displayed by the browser, but they can help document your HTML source code.


What is CSS File and why it is used?

A CSS file can tell the web browser how a web page is supposed to look. The web page (HTML file) itself says what words are on the page, and which pictures, but you CAN use the CSS file to specify what goes where, how big, what color and font, and things like that.You CAN also specify all those things in the HTML file. The biggest advantages of using separate CSS are:The same CSS file can be used for all pages in a site, so if you want to change something, you can just change it in one place, and all the pages will now look the way you want.If you use the same CSS file for every page, your pages will load faster, since the browser does not re-fetch the CSS file every time.


What is a CSS Layout Generator?

The CSS Layout Generator is a tool used to create website layout templates. It uses an on-line code known as CSS (cascading style sheets) which is a language used in formatting and the look of a layout.


What is the use of css?

CSS is used to add style to HTML documents. HTML is designed to code the elements of a webpage, like text and pictures. CSS (Cascading Style Sheets) is used to define how they look (color, size, bold, etc.). CSS was used to fix a problem created when HTML tries to define how a page looks. It is now not acceptable to have HTML tags like <b> (which makes text bold). You should now include all of that information in CSS.


How do you fix your profile with MySpace 2.0?

Go to a site like profilerehab.com to get a myspace layout. Look for 2.0 Layouts and then the layout code will be on the layout page. You have to paste the 2.0 layout code into the CSS Box, here are directions to find the CSS box: http://profilerehab.com/help/how_to_use_myspace_20_layouts Make sure you are using 2.0 code. the old code for 1.0 will not work in 2.0 profiles.


On MagiStream what is a Custom CSS code and how do you use it?

A CSS code allows you to modify your profile visually. There are articles in the MagiStream gamer forums that explain how and where you can use CSS codes.


What are HTML stylesheets?

HTML is a markup language and not a style sheet. CSS is the styling code used to make an HTML page look the way you want it. CSS Tutorials might help you.


What is an embedded style?

Embedded CSS simply means that your CSS is written in an external file (i.e. not in your HTML file). The external file can be anywhere on your server and must end in ".css". You would call this CSS file from inside your HTML file like this:On the otherhand, inline CSS is when your CSS is included inside of your HTML code, for example:foo