Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Adding html code to html or css?
Old 02-19-2009, 08:35 AM Adding html code to html or css?
Super Talker

Posts: 132
Trades: 0
I am building a site using a template and this is the css code:

Quote:
CONTENT
------------------------------------*/
.sf_pagetitle {
clear: both;
padding: 10px 0 0 20px;
font: normal 1.5em Helvetica, Arial, sans-serif;
text-align: left;
height: auto !important;
min-height: 30px;
}

.sf_content {
height: 300px;
padding: 20px 20px 0 20px;
margin: 0px;
font-size: 12px;
font-family: Verdana, Arial, Helvetica, sans-serif;
height: auto !important;
height: 200px;
min-height: 200px;
}

.sf_content:after {
content: ".";
display: block;
visibility: hidden;
height: 0;
font-size: 1px;
clear: both;
}

/*------------------------------------
FOOTER
------------------------------------*/
.sf_footer {
font-size: .8em;
padding: 25px 0 0 20px;
text-align: center;
font-family: Verdana, Arial, Helvetica, sans-serif;
height: 30px;
}

/*------------------------------------
BANNER
------------------------------------*/
div.sf_banner {
margin-bottom: 35px;
padding-top: 50px;
text-align: center;
font-size: .8em;
}

div.sf_banner div#bannerLink {
padding-top: 10px;
}
I need to add this html code to the page to show an animation image, question is should this code be added to the html doc or to the css file?

Quote:
<p align="center"><a href="www.phatphones.com">
<img border="1" src="http://www.phatphones.com/PhatphonesAnim.gif" width="468" height="60"></a></p>
mikehende is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-19-2009, 10:34 AM Re: Adding html code to html or css?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
CSS files are for CSS ONLY, you cannot put HTML into a CSS file.

Don't use <p align="center"> - use css for text alignment.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Adding html code to html or css?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09874 seconds with 12 queries