UK Webmaster Talk - Online Marketing - SEO


 

CSS and HTML

This is a discussion on CSS and HTML within the HTML, DHTML and CSS forums, part of the Programming / Scripting / Coding category; right how do i make my HTM file use the CSS File? what do i type in?...


Go Back   UK Webmaster Talk - Online Marketing - SEO > Website Design & Development > Programming / Scripting / Coding > HTML, DHTML and CSS

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices

Reply

 

LinkBack Thread Tools Display Modes
Old 03-07-2005, 14:50   #1 (permalink)
KF1
Guest
 
Posts: n/a
iTrader: / %
Default CSS and HTML

right how do i make my HTM file use the CSS File?
what do i type in?
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-07-2005, 14:52   #2 (permalink)
Ultimo Supremo
 
Join Date: May 2005
Location: /public_html/Cgi-bin/
Posts: 1,417
iTrader: 0 / 0%
Morphmaster is a glorious beacon of light
Send a message via MSN to Morphmaster
Default

<link href="name.css" rel="stylesheet" type="text/css"> i think
__________________
Thanks
Tom

Have you ever thought what it's like, to be wanderers in the fourth dimension? Have you? To be exiles?
Morphmaster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-07-2005, 14:53   #3 (permalink)
KF1
Guest
 
Posts: n/a
iTrader: / %
Default

ok ill try that thanks
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-07-2005, 14:54   #4 (permalink)
Ultimo Supremo
 
Join Date: May 2005
Location: /public_html/Cgi-bin/
Posts: 1,417
iTrader: 0 / 0%
Morphmaster is a glorious beacon of light
Send a message via MSN to Morphmaster
Default

no probs mate
__________________
Thanks
Tom

Have you ever thought what it's like, to be wanderers in the fourth dimension? Have you? To be exiles?
Morphmaster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-07-2005, 15:04   #5 (permalink)
KF1
Guest
 
Posts: n/a
iTrader: / %
Default

and if i want something in the middle of the page can i tell it MIDDle or something or do i have to do it by Pixels?
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2005, 22:16   #6 (permalink)
Senior Member
 
Join Date: Apr 2005
Posts: 350
iTrader: 0 / 0%
rustypaulin has a spectacular aura about
Send a message via AIM to rustypaulin Send a message via MSN to rustypaulin
Default

you could try <div align="center"> and then </div>
rustypaulin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-07-2005, 19:23   #7 (permalink)
KF1
Guest
 
Posts: n/a
iTrader: / %
Default

Thanks i foggot what i needed it for now i foggot and dident see this post ive adden to both of your REPs for helping me
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-07-2005, 19:58   #8 (permalink)
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,026
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

Quote:
Originally Posted by rustypaulin
you could try <div align="center"> and then </div>
Given there's a probability that you'll want more than just the alignment and you'll re-use it, then ideally you'll want to define it as a class.

<div class="mycenter"> your text etc... </div>

and put something like this in your CSS file

.mycenter {
text-align: center;
font-size: 12pt;
}
monaghan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-07-2005, 20:00   #9 (permalink)
KF1
Guest
 
Posts: n/a
iTrader: / %
Default

ah and can i use CSS in tpl?
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-07-2005, 20:04   #10 (permalink)
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,026
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

tpl ?

I presume this is an HTML file as a template ? If so, then you should be able to modify the header template to include the CSS file (as per Tom's reply) and then simply add classes to your template HTML as per my reply.

Note: Your header may come from a different template to your main body text, be sure to modify the template that actually outputs the <head>...</head> section.
monaghan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
css, html

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
I need help with html macca-tom Graphics Forum 11 21-05-2008 21:09
PHP/HTML/MYSQL - for ??$$ KF1 Website Development Forum 0 20-07-2005 17:27
HTML does and donts Morphmaster Website Design Articles 0 26-06-2005 18:34
Html: Fonts Morphmaster Programming Articles 0 26-06-2005 18:05
HTML Images Bmg Programming Articles 0 07-04-2005 16:24


All times are GMT +1. The time now is 13:44.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
UK Webmaster Forum © WebmasterTalk.co.uk | Design by Forbairt

Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41