CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 30th, 2002, 03:16 PM
shokesy shokesy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 62 shokesy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 46 m 42 sec
Reputation Power: 6
New to css: are u limited to tags in html

Hi there,
im just learning css now and im wondering if its possible to do this somehow:


<myOwntagName style="font size: small; color: red; font-weight: bold; font-family: Arial, Helvetica, non-serif">This is a local stylesheet declaration. </myOwntagName>

What i mean is that the above css inline code won't work or do anything because "myOwntagName" isnt recognized as an html tag. Is there a way to define your own tags? is this what xml is about (another thing i have to learn.)

thanksNadvance,
appreciated

shokesy

Reply With Quote
  #2  
Old September 30th, 2002, 03:51 PM
degsy degsy is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2001
Posts: 1,882 degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 21 h 19 m 30 sec
Reputation Power: 13
Quote:
XML was designed to describe data, and to focus on what data is.

HTML was designed to display data, and to focus on how data looks.


http://www.w3schools.com/xml/xml_display.asp

Reply With Quote
  #3  
Old September 30th, 2002, 03:58 PM
jpenn's Avatar
jpenn jpenn is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2002
Location: Washington, DC
Posts: 2,693 jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 41 m 10 sec
Reputation Power: 16
Quote:
What i mean is that the above css inline code won't work or do anything because "myOwntagName" isnt recognized as an html tag. Is there a way to define your own tags? is this what xml is about


Bingo.....

But you are losing the whole purpose of CSS. Check out this code for example -->

Code:

<style type="text/css">
<!--
.table {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #000000;
	background-color: #FFFFFF;
	border: 1px solid #000000;
	padding: 10px;
}-->
</style>

<!-- The above defined our style -->

<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="table">A simple table with a style applied</td>
</tr>
</table>

<!-- The above is the style applied to our table, eg: td class="table" -->


Copy and paste that code and run in your browser to see the output. No need to waste the power of xml when you can do it with a style sheet...
__________________
~ Joe Penn

Reply With Quote
  #4  
Old September 30th, 2002, 04:09 PM
shokesy shokesy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 62 shokesy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 46 m 42 sec
Reputation Power: 6
thanks guys....

and that table example, WICKED! now i see the light

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > New to css: are u limited to tags in html


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway