Re: [Cppcms-users] CSS example
Brought to you by:
artyom-beilis
From: CN <cn...@fa...> - 2017-07-22 17:39:32
|
On Sat, Jul 22, 2017, at 04:01 PM, jupiter wrote: > I am learning CPPCMS, but could not find an example for css in the source /example, is there any example code for css? Just embed <link> tags <link href="my_style.css" rel="stylesheet" type="text/css" /> in your output as you would embed them in your usual static html file. For example, a template with <link> tag might look like this: <% c++ #include "my_file.h" %> <% xhtml %> <% skin view %> <% view my_view uses content::my_content %> <% template render() %> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><% gt "This is my first page." %></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="my_style.css" rel="stylesheet" type="text/css" /> </head> <body> <h1><% gt "CppCMS Rocks" %></h1> </body> </html> Best Regards, CN -- http://www.fastmail.com - Accessible with your email software or over the web |