ctbrons
Apr 18 2006, 07:27 PM
| | I am attempting to create style sheets in order to make editing easier. I have created one style sheet that has the basics for my horizontal menu. However I would like to create another that will have the links for the menu. My first menu works because it is all css formatted. However, the portion I want to use that has the "link details" is in .html. Can this be put into a style sheet, and if so how do I create that? The website can be viewed at http://www.faithcity.org/test2.html |
Reply
jlhaslip
Apr 18 2006, 08:17 PM
No, you can't have html in a css stylesheet. The stylesheet acts upon an html file only. Define the html on a page and then point to the css file using a link tag. You can have several css files act upon a single html page, though. Typically, one for screen output and one for printing are the most common.
Reply
WindAndWater
Apr 19 2006, 12:13 AM
It sounds like what you'd really like to use is an include function, like the one found in PHP. Thankfully, trap17 fully supports php, and the function's very easy to use, so if you look up a few examples you should have it done in no time.
Reply
fffanatics
Apr 19 2006, 02:02 PM
Yeah you cant have html in a style sheet. Basically your site most likely only will need one style sheet for the whole site. In it you should define classes and ids for different types of styles in your site. So for your links you could have a class called horizontalBar and then have id's for a.hover, etc. Then for your links just make a new class (or dont even use a class) and make the ids to format it the way you want. You do not use style sheets to show data, just to format it so that if you ever decide to change the look and feel of your website, all you have to do is change the style sheet becuase as long as you dont want to change the layout, all the colors and other details are able to be changed from there.
Reply
ctbrons
Apr 20 2006, 07:47 PM
I have attempted to add the "include function" to the site, but I am getting a php error. For some reason it will not point to the item correctly, and it throws the entire rest of the page out of wack! I am now using the test page of http://www.faithcity.org/test2.html. Any idea what could make this not function properly? Actually, after some research it appears that my editor will not allow php. Is there a .html function that will do the same thing?
Reply
Tyssen
Apr 23 2006, 10:07 PM
What do you mean your editor won't allow PHP? Which editor are you using?
Reply
Recent Queries:--
creating style in js - 151.44 hr back. (1)
Similar Topics
Keywords : creating style sheets- Style Not Displayed Correctly On Firefox [resolved]
- (16)
- Question About Css
- Setting the style of titles. (5)
Hello, I would like to ask a question about setting a style for titles on my web site. So far I have
managed to set my titles with a different capital by doing this: CODE h1.title:first-letter
{color: gold; font-size=xx-large; font-style: oblique; background: black}; Then my
titles come out with a big golden italic capital in a black box, and I get there by doing CODE
<h1 class="title">Blablablablabla</h1> However, if I also want a certain
background for the rest of my title, eg. a golden background or even a backgro...
Need Help On "global News" Problem.
- Change paragraph of text with CSS style change? (7)
I am making a website for my IT Support class and a program called "Cox Connects Kids" for my
mid-term assignment. Now I have the whole layout made and I will post a screen shot down lower. My
basic problem/question is this: I have a right section of the page(A div) and it is supposed to be
a global news part that shows the same on every page(I.e. home,contacts,help) and I was wondering if
I can somehow edit my CSS file to have it in there and just change it the one time for all the
pages. I am guessing there is some way to do this but I couldn't figure it out. I...
Free: Css - Style Sheet Editors And
- CSS Scrollbar Makers (7)
CSS - Style Sheet Editors : Ranfo Cascading Style Sheet Editor http://ranfo.com/csseditor.htm
EclipseStyle http://www.greeneclipsesoftware.com/eclipsestyle.htm BHead - Meta Tags & CSS
Generator http://home5.swipnet.se/~w-52253/hyper/pro...ead/bhsetup.exe CSS Style Generator
http://www.10002.org/download/CSSStyleGen.zip Balthisar Cascade
http://www.balthisar.com/site/index.php CSS Scrollbar Makers: Scrollbar Skinner
http://www.survivorx.com/telechargement/Sc...%20Skinner2.zip ScrollBar
http://home.hccnet.nl/s.j.francke/software...ollbarsetu...
Alternate Style Sheet
- hows that? (6)
I know that you can declare alternate stylsheets for your pages, but i dont know how will a user
change it, i mean, i know you can change styles depending on media, or even with some js or server
side coding, but with pure html? how does the user set what style he wants to be displayed? the
code goes something like that: CODE <link title="Alternate Style"
href="/alt1.css" rel="alternate stylesheet" media="screen"
type="text/css" /> thanks... -lozbo...
Looking for creating, style, sheets
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for creating, style, sheets
*MORE FROM TRAP17.COM*
|
advertisement
|
|