Support Forums

new class in style.css

This is a discussion on new class in style.css within the Technical Support forums, part of the Technical Support Forums category; this must be simple.. but couldn't get it working. I want to create a new class in style.css that formats ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-14-2009, 02:41 AM   #1
Customer
 
Join Date: Jun 2008
Location: Maldives
Posts: 134
Rep Power: 16
business is on a distinguished road
Default new class in style.css

this must be simple.. but couldn't get it working.
I want to create a new class in style.css that formats the listing title. currently it's using <th>. I created a new one <thtitle> and copied the formating from <th> and customized it a bit. But when i use the class <thtitle> in the view listing template, the title is not formated as I would expect... what am i not doing?
thanks
__________________
v 4.2.0 Developer - Default Template
business is offline  
Old 06-14-2009, 07:28 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

Post your code please. A link to your site will help. How can anybody possibly respond to your question.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline  
Old 06-15-2009, 12:22 AM   #3
Customer
 
Join Date: Jun 2008
Location: Maldives
Posts: 134
Rep Power: 16
business is on a distinguished road
Default

below is the default <th> and the new one I have created as a test.. with bigger font size, change color and no background image. then instead of <th></th> in viewlisting, I use <thtitle></thtitle>. Is this the way I do it?

Code:
th{
	background:url(../images/th.jpg) repeat-x;
	color: #FFF;
	font-weight: bold;
	border-bottom: 1px solid #D6D5D6;
	text-indent: 5px;
	padding: 5px;
	margin: 5px;
	font-size: 10px;
	text-align: left;
}
thtitle{
	color: #00008B;
	font-weight: bold;
	border-bottom: 1px solid #D6D5D6;
	text-indent: 5px;
	padding: 5px;
	margin: 5px;
	font-size: 15px;
	text-align: left;
}
__________________
v 4.2.0 Developer - Default Template
business is offline  
Old 06-15-2009, 01:14 AM   #4
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

No. There is no such element as <thtitle>

You may want to go through some basic HTML, CSS at w3schools.com. It has several free tutorials for many essentials for the web.

You would either want to use <th class="your_new_class_name"> or <div class="your_new_class_name"><th>.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
error class DGiscombe Technical Support 7 05-28-2009 09:36 AM
How can I append a dynamic class to a menu item? jonahcoyote Technical Support 4 06-25-2008 07:26 PM


All times are GMT -4. The time now is 11:14 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0