| | |
embedding html?
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Hi, I have this code:
which I got from a website, I was wondering if there is a way I can have this imported into a website? I thought if I saved it I could do the same type of thing as css where you do that?
HTML and CSS Syntax (Toggle Plain Text)
<style> div.floating-menu {position:fixed;background:#fff4c8;border:1px solid #ffcc00;} div.floating-menu a, div.floating-menu h3 {display:block;margin:0 0.5em;float:left;} </style> <div class="floating-menu"> <h3>Floating Menu</h3> <a href="http://www.quackit.com/css/">CSS</a> <a href="http://www.quackit.com/html/">HTML</a> <a href="http://www.quackit.com/javascript/">JavaScript</a> <a href="http://www.quackit.com/coldfusion/">ColdFusion</a> <a href="http://www.quackit.com/myspace/codes/">MySpace Codes</a> </div>
don't judge me because I'm a year 8!
'it is better to fight for something than to live for nothing'General George S Patton
'it is better to fight for something than to live for nothing'General George S Patton
0
#6 Oct 13th, 2009
Yes, you can add the code,what ever you like but the code is not 100% correct for cross browsers. Mainly in IE it will create issue, for that you have a use CSS hack, at first have to make the parent div positioned absolute for IE browser with conditional CSS hack.
•
•
Join Date: Jan 2009
Posts: 91
Reputation:
Solved Threads: 13
0
#8 Oct 13th, 2009
Did you mean external css to embed in your document?
Here is import external css to document.
Here is import external css to document.
HTML and CSS Syntax (Toggle Plain Text)
<style type="text/css"> <!-- @import url('yourcss.css'); --> </style>
![]() |
Similar Threads
- Capturing data from txt file using JavaScript/HTML (JavaScript / DHTML / AJAX)
- c++ & python (C++)
- Embedding an HTML box in a blog entry. (HTML and CSS)
- How to link the data using JavaScript in html (JavaScript / DHTML / AJAX)
- C or C++ equiv. to Python's expanduser, abspath, normpath (C++)
- Including files at run time (C)
- Report Builder Embedding HTML (ColdFusion)
Other Threads in the HTML and CSS Forum
- Previous Thread: <td nowrap="nowrap" /> is not working in IE8
- Next Thread: Extending the box model?
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl





