Welcome To My Website!
Howdy! My name is Duc Hoang Le and you're viewing my personal website at Pijaja.Com - Innovative Site Builder. On this site, you'll find articles which focus (mainly) on DotNetNuke. As I'm not (yet) a professional developer, my articles will cover advanced topics for DNN users to make the framework more usable and user-friendly. In addition, you'll also find my Photo Album and Personal Profile here. Enjoy!
Technical Blog
Monday, June 09, 2008
Specify Inline CSS For Individual Pages
bởi Lê Hoàng Đức @ 8:05 PM :: 208 Lượt xem :: 0 Comment :: :: DNN :: All Posts, DNN :: Tips & Tricks
 
Have you ever wanted to have different styles for each page in your site? For example, in page A, the link's color is green while in page B is red, can that be done? The answer is a big yes, and it's a really simple one.
 
Just open the Page Settings and insert this code in the "Page Header Tags" textbox:
 
<style type="text/css">
<!--
a:link { color:green }
a:hover { color:red }
//-->
</style>
 
Inside the <style></style> tag, insert your desired styles, and that's it!
 
You can see this in action in my Sirius - Free Skin For DotNetNuke portal. In the Tips & Tricks page, the link's color is green, which is different from every other page.
 
*Note: instead of configuring the styles inline, you can also link to a different style sheet; but IMO, that is an overkill!

digg digg | del.ico.us del.ico.us | facebook facebook | facebook stumbleupon | reddit reddit

Cho Điểm
Comment
Hiện giờ vẫn chưa có comment nào. Hãy là người "bóc tem" cho entry!
Click vào đây viết comment.
Archive


Links

People

Social Spaces