Guest zhshqzyc Posted August 30, 2006 Share Posted August 30, 2006 my codes:link to an external stylesheet,this stylesheet import another style sheet. <html><head> <style type="text/css"> h1 {color:blue; text-align: left; font-family: times} .under {text-decoration: underline} li {color: green; text-decoration: underline} span {font-size: 0.7em} .super{position: relative; top: -1ex} body {background-color: yellow} p:first-line {color: #ff0000;font-variant: small-caps} p:first-letter { color: #0f0f00; font-size:x-large }div {background-color:#00FFFF;width:100px;height:150px;}</style><link rel="stylesheet" type="text/css" href="first.css"></head><body> <h1 class="under"> Measurable Outcomes</h1><img src="000.jpg" style="position: absolute; top: 300px; left: 350px; z-index: 1"><ul> <li>Code HTML, CSS, JavaScript, Perl, XML, DTDs, and XML schemas.</li> <li>Use CGI, ODBC, cookies, server-side includes, the DOM APIs, and Web services.</li> </ul><p class="ridge">xxx.</p><p class="inset">xxx.</p><p class="uppercase">xxx.</p> [color=#FF0000]<--! [size=5]no work! help me[/size]-->[/color][<div> aaa<span class="super">yyy</span> zzz</div></body></html> my first.css is @import url(second.css)p.ridge {border-style: ridge}p.inset {border-style: inset} my second.css is p.uppercase {text-transform: uppercase}p.lowercase {text-transform: lowercase} Thanks in advance Link to comment Share on other sites More sharing options...
danm68 Posted September 1, 2006 Share Posted September 1, 2006 uh ok, im not exactly css wizz but i have something..you couldnt call it an idea..but anyway...Why dont you just put the 'second.css' code in the first one..and just link to the first one instead of @import url in the first css.Ok secondly, i thnk you can do it that way..with the @import in the style sheet, but dont you do something like:in your html page you can have in your head section...<link rel="stylesheet" type="text/css" href="style1.css" /> // I think thats right..<style type="text/css">@import url(style2.css)</style></head><body> blah blah...so on so forth.Do either of those work? or do you neeed to have it that way for a reason? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now