<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Berthou.com &#187; css</title>
	<atom:link href="http://www.berthou.com/us/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.berthou.com/us</link>
	<description>A french developper blog</description>
	<lastBuildDate>Mon, 09 Aug 2010 08:55:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>Dynamic forms builder with jQuery</title>
		<link>http://www.berthou.com/us/2009/09/05/dynamic-forms-builder-with-jquery/</link>
		<comments>http://www.berthou.com/us/2009/09/05/dynamic-forms-builder-with-jquery/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 13:23:26 +0000</pubDate>
		<dc:creator>rberthou</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[dhtml]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.berthou.com/us/?p=58</guid>
		<description><![CDATA[The project Recently I have searched a foms editor &#8211; wizard&#8221; in web mode. I looked for it on internet, believing many projects should greatly deal with this problem (I don&#8217;t like to develop something if it already exist). After many tests I have come to the conclusion that it does not exist (or that [...]]]></description>
				<content:encoded><![CDATA[<h2 class="titre2">The project</h2>
<p>Recently I have searched a foms editor &#8211; wizard&#8221; in web mode. I looked for it on internet, believing many projects should greatly deal with this problem (I don&#8217;t like to develop something if it already exist). After many tests I have come to the conclusion that it does not exist (or that it is not well &#8220;referenced&#8221;&#8230;).<br />
Also I have taken advantage of my holidays to do this &#8220;little&#8221; project.<br />
<img src="/_img/rbl_forms_0.png" class="center"/></p>
<p><span id="more-58"></span><br />
After my research I signal you the following sites which seem quite good but do not fit my objectives (tey were not in opensource).</p>
<p class="alertLink">
<a href="http://www.jotform.com/" target="_blank">JotForm</a> : I like the presentation<br/><br />
<a href="http://wufoo.com/examples/" target="_blank">Wufoo</a> : Seems interessant but an inscription is compulsory.
</p>
<h2 class="titre2">The goal</h2>
<p><b>It is really simple !</b></p>
<p class="alertInfo">
 <a href="http://www.berthou.com/rbl_forms/index.htm" target="_blank">Demonstration rbl_forms</a>
</p>
<ul>
<li>To permit to construct a html form in 100% web mode (without codeing)</li>
<li>Not to force to use a library as (jQuery, prototype, dojo,..) in the generated code</li>
<li>To offer the basics controls (compulsory area, size&#8230;)</li>
<li>To be easily adaptable (it is at you to tell me if this goal has been succesfully reached)</li>
<li>Not to use table</li>
<li>To save in XML size</li>
<li>To generate a page in pure html</li>
</ul>
<h2 class="titre2">Tools used</h2>
<p class="alertLink">
<a href="http://jquery.com/" target="_blank">jQuery</a> : I love it more and more, it&#8217;s lib !<br/><br />
<a href="http://jqueryui.com/" target="_blank">jQuery UI</a> : the logical extension to work in web mode.<br/><br />
<a href="http://www.berthou.com/fr/2007/11/23/formulaire-dhtml/">t_fotm</a> : For the validation part of the form.
</p>
<h2 class="titre2">The functionalities</h2>
<p>To make easier the visual creation of the form the use of the &#8220;drag &#038; drop&#8221; is very important to register areas of the form or to move them.<br/><br />
There is three levels of personnalisation ( Form, Column, Element ). Theses differents pannels permit to specify with precision the size and the presentation of the form.</p>
<h3 class="titre3">The form pannel</h2>
<p><img src="/_img/rbl_forms_d0.png" class="right"/><br />
This dialog box permit to specify the following informations (they are activated by cliking on the item &#8220;Edition Form&#8221; on the left pannel) :</p>
<ul>
<li>The name : form <b>name</b> attribut</li>
<li>The file : to save</li>
<li>The title : Display in the form (fieldset legend)</li>
<li>The action : form <b>action</b> attribut (url or other)</li>
<li>The method : POST or GET </li>
<li>The size : Appear in the style properti (width, height)</li>
<li>The layout : unused actually</li>
<li>The CSS : This gives the principal style of the &#8220;form&#8221;</li>
</ul>
<p class="alertWarning">In the case of a cration of a new form you must not forgive of modify the &#8220;file&#8221; area to specify the names of the saving files.</p>
<h3 class="titre3">Les colonnes</h2>
<p><img src="/_img/rbl_forms_d1.png" class="right"/><br />
I accept the definition of many column for the construction of theses elements because I don&#8217;t want to have too vertically form. I limit it to three column at this day.<br />
You can edit the proprieties of the column by selecting (by a simple click) the line &#8220;column 1&#8243; of grenn/yellow color then by clicking on the item &#8220;Edition&#8221; of the left pannel.<br/><br />
Description of the pannel : </p>
<ul>
<li>Name of the column : unused</li>
<li>Size : (width, height) can be define by resizing the column or by directly keyboarding the values.</li>
<li>The layout : it is a CSS clss which permit to specify the type of presentation in the column.</li>
<li>The CSS : other CSS class (at this day undefined but implented)</li>
</ul>
<p class="alertWarning">The item &#8220;supression&#8221; in the left menu permit to cancel/delete a column with the whole areas.
</p>
<h3 class="titre3">The areas</h2>
<p><img src="/_img/rbl_forms_d2.png" class="right"/><br />
You can add areas in a column of the form by a simple &#8220;drag &#038; drop&#8221; from the left menu. Also appear  a dialog box which invit you to specify some informations (theses data change with the type of area).</p>
<ul>
<li>ID : for information (readonly</li>
<li>Nom : attribut name </li>
<li>Label : Input information (title / label)</li>
<li>AccessKey : keyboard shortcut</li>
<li>Format : standard input mask  (email, date, money, &#8230;) for input control</li>
<li>Freemask : you can use this to define other format / mask
<ul>
<li>9 : A digit char 0-9</li>
<li># : An optionnal digit char</li>
<li>A : An alpha char in uppercase</li>
<li>a :  An optionnal alpha char in uppercase</li>
<li>M : An alpha char (upper or lower)</li>
<li>m : An optionnal alpha char</li>
<li>N : An alphanumiric char</li>
<li>n : An optionnal alphanumeric char</li>
<li>V : A coma or point </li>
<li>v : An optionnal coma or point </li>
<li>S : A sign + or &#8211; </li>
<li>s : A optionnal sign</li>
<li>T : A char</li>
<li>t : A optionnal char</li>
</ul>
</li>
<li>Regex. : a regexp for more complicated control</li>
<li>Size : </li>
<li>Table associted : personal use in other project</li>
<li> max length :</li>
<li>autoskip : sklip to the next zone if all char is entered  </li>
<li>CSS : style html (class)</li>
<li>Required  </li>
<li>ReadOnly</li>
<li>Aide : Help message </li>
</ul>
<h2 class="titre2">Sample form</h2>
<p><img src="/_img/rbl_forms_1.png" class="center"/></p>
<p class="alertLink">
<a href="http://www.berthou.com/rbl_forms/html/produit.html" target="_blank">Sample generated form</a>
</p>
<h2 class="titre2">In the next versions</h2>
<p>I would like add many other functionnalities in the next version of this tool.<br />
Je souhaite ajouter plusieurs fonctionnalités dans les prochaines versions de cet outil. </p>
<ul>
<li>CSS : Define new CSS styles (form, colonnes, input)</li>
<li>Translation : Add other language</li>
<li>Add more complex controles : Captcha, Tabs, &#8230;</li>
<li>Can select other datepicker and forms controles</li>
<li>Add other load/save script in JSP, ASP, Perl&#8230;</li>
<li>And more&#8230;.</li>
</ul>
<p class="alertInfo">
Do npt hesitate to contact me if you wish to help me in this developement or if you have add a functionality or correct a bug.
</p>
<h2 class="titre2">Download</h2>
<p class="alertDownload">
<a href="/download.php?type=dhtml&#038;file=rbl_forms.zip" target="_blank">rbl_forms last version</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.berthou.com/us/2009/09/05/dynamic-forms-builder-with-jquery/feed/</wfw:commentRss>
		<slash:comments>57</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; a good printing with the CSS</title>
		<link>http://www.berthou.com/us/2009/06/13/wordpress-a-good-printing-with-the-css/</link>
		<comments>http://www.berthou.com/us/2009/06/13/wordpress-a-good-printing-with-the-css/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 17:24:28 +0000</pubDate>
		<dc:creator>rberthou</dc:creator>
				<category><![CDATA[dhtml]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.berthou.com/us/2009/06/13/wordpress-a-good-printing-with-the-css/</guid>
		<description><![CDATA[A good use of style sheet. I often print an article to keep a copy. I use most of the time a &#8220;see before printing&#8221; to select the pages I want to print. But I&#8217;ve remarked that 50% of the printing area is employed with publicities or menus. When we create the design of a [...]]]></description>
				<content:encoded><![CDATA[<h2 class="titre2">A good use of style sheet.</h2>
<p><img src="/_img/printer_0.png" alt="Imprimante " class="left"/><br />
I often print an article to keep a copy. I use most of the time a &#8220;see before printing&#8221; to select the pages I want to print. But I&#8217;ve remarked that 50% of the printing area is employed with publicities or menus.</p>
<p>When we create the design of a site we foresee an area for menus, for publicity and sometimes others specific areas to boost the look and the ergonomic of the site.<br />
These areas useful for the navigation become a pain for the printing of the article. However it is very simple to handle this problem if you use the style papers.<strong>CSS</strong>.</p>
<p>In an ecological wish (it&#8217;s tendance) but also to have a &#8220;cleaner&#8221; printed text, I am going to explain you how to adapt your WP theme to print correctly.<br />
<span id="more-45"></span></p>
<p><img src="/_img/imp_screen.png" alt="Structure ecran d'un site" class="left"/><br />
<img src="/_img/imp_prt.png" alt="Structure ecran d'un site" class="right"/></p>
<h2 class="titre2">Modifications for WordPress</h2>
<p>WordPress, like all the blog or CMS motors, use style papers to make easier the adpatation of the presentation. Also it is quite simple to adapt your theme, if it doesn&#8217;t permit it. In my case the adpatation took me less than one hour. Here is the modifications to make :</p>
<ul>
<li>print.css : creation of the specific style paper for the printing &#8211; It is a minimum version I only use the ID No Print that I hide for the impression, you can make it richer to modificate the margins, the size of the police and many other things.
<p class="alertCode">* #NoPrint {<br />
   display: none;<br />
}</p>
</li>
<li>header.php : Add of the style papers &#8220;media&#8221; for the print.
<p class="alertCode">
&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; <b>media=&#8221;print&#8221;</b>  href=&#8221;<b>&lt;?php bloginfo(&#8216;template_url&#8217;); ?&gt;</b>/print.css&#8221; /&gt;
</p>
</li>
<li>index.php, page.php, &#8230; : Modification of many pages in the theme to add a &#8211; <b>id=&#8221;NoPrint&#8221;</b> &#8211; to the elements i don&#8217;t want to print.
</li>
</ul>
<h2 class="titre2">Downloads</h2>
<p>I propose you to download the last version of the theme Rbl-Illacrimo which includes the support of the printing.</p>
<p class="alertDownload">
<a href="/download.php?type=wp&#038;file=rbl-illacrimo-fr.zip">Rbl &#8211; Illacrimo &#8211; Français</a><br/><br />
<a href="/download.php?type=wp&#038;file=rbl-illacrimo.zip">Rbl &#8211; Illacrimo &#8211; English</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.berthou.com/us/2009/06/13/wordpress-a-good-printing-with-the-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress add and test external CSS</title>
		<link>http://www.berthou.com/us/2007/11/03/css-wordpress/</link>
		<comments>http://www.berthou.com/us/2007/11/03/css-wordpress/#comments</comments>
		<pubDate>Sat, 03 Nov 2007 21:03:46 +0000</pubDate>
		<dc:creator>rberthou</dc:creator>
				<category><![CDATA[dhtml]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.berthou.com/us/?p=9</guid>
		<description><![CDATA[When I publish a news in my blog I need some CSS styles. To define this in wordpress I use an external css with a simple import tag put in main css file theme (I found no plugin to do this). Code to include an external css in &#8220;theme/yourTheme/style.css&#8221; &#64;import url(&#8220;/myCss/myStyle.css&#8221;); Sample Exemple avec alert [...]]]></description>
				<content:encoded><![CDATA[<p>When I publish a news in  my blog I need some CSS styles. To define this in wordpress I use an external css with a simple import tag put in main css file  theme (I found no plugin to do this).<br/><br />
Code to include an external css in &#8220;theme/yourTheme/style.css&#8221;</p>
<p class="alertCode">
&#64;import url(&#8220;/myCss/myStyle.css&#8221;);
</p>
<hr/>
<p class="titre2">Sample</p>
<p class="alertInfo">Exemple avec alert info Exemple avec alert info  Exemple avec alert info  Exemple avec alert info  Exemple avec alert info  Exemple avec alert info  Exemple avec alert info  Exemple avec alert info  Exemple avec alert info  Exemple avec alert info
</p>
<p class="alertWarning">Exemple avec alert warning Exemple avec alert warning Exemple avec alert warning</p>
<p class="alertLink">Exemple avec alert Link</p>
<p class="alertFeed">Exemple avec alert Feed</p>
<p class="alertCode">Exemple avec alert Code Exemple avec alert Code Exemple avec alert Code Exemple avec alert Code Exemple avec alert Code Exemple avec alert Code Exemple avec alert Code Exemple avec alert Code<br />
Exemple avec alert Code Exemple avec alert Code Exemple avec alert Code<br />
Exemple avec alert Code Exemple avec alert Code
</p>
<p class="titre1">Exemple avec titre1</p>
<p class="titre2">Exemple avec titre2</p>
<p class="titre3">Exemple avec titre3</p>
<p class="titre4">Exemple avec titre4</p>
<p class="titre5">Exemple avec titre5</p>
<p class="titre6">Exemple avec titre6</p>
<p class="titre2">Table &#8220;tbl0&#8243;</p>
<table summary="test" class="tbl0">
<thead class="rh">
<tr>
<th>col1</th>
<th>col2</th>
<th>col3</th>
<th>col4</th>
</tr>
</thead>
<tbody>
<tr class="r1">
<td id="col1">col1</td>
<td>col2</td>
<td></td>
<td id="col99"></td>
</tr>
<tr class="r2">
<td id="col1">col1</td>
<td>col2</td>
<td>col3</td>
<td id="col99">col4</td>
</tr>
<tr class="r1">
<td id="col1">col1</td>
<td class="tdc">col2</td>
<td>col3</td>
<td class="tdr" id="col99">254,52</td>
</tr>
<tr class="r2">
<td id="col1">col1</td>
<td class="tdc">col2</td>
<td>col3</td>
<td class="tdr" id="col99">2.40</td>
</tr>
</tbody>
<tfoot class="rf">
<tr>
<td id="col1">col1</td>
<td class="tdc">col2</td>
<td>col3</td>
<td class="tdr" id="col99">2 545.00</td>
</tr>
</tfoot>
</table>
<hr/>
<p class="titre2">Table &#8220;tbl1&#8243;</p>
<table summary="test" class="tbl1">
<thead class="rh">
<tr>
<th>col1</th>
<th>col2</th>
<th>col3</th>
<th>col4</th>
</tr>
</thead>
<tbody>
<tr class="r1">
<td id="col1">col1</td>
<td>col2</td>
<td></td>
<td id="col99"></td>
</tr>
<tr class="r2">
<td id="col1">col1</td>
<td>col2</td>
<td>col3</td>
<td id="col99">col4</td>
</tr>
<tr class="r1">
<td id="col1">col1</td>
<td class="tdc">col2</td>
<td>col3</td>
<td class="tdr" id="col99">254,52</td>
</tr>
<tr class="r2">
<td id="col1">col1</td>
<td class="tdc">col2</td>
<td>col3</td>
<td class="tdr" id="col99">2.40</td>
</tr>
</tbody>
<tfoot class="rf">
<tr>
<td id="col1">col1</td>
<td class="tdc">col2</td>
<td>col3</td>
<td class="tdr" id="col99">2 545.00</td>
</tr>
</tfoot>
</table>
<hr/>
<p class="titre2">Table &#8220;tbl3&#8243;</p>
<table summary="test" class="tbl3">
<thead class="rh">
<tr>
<th>col1</th>
<th>col2</th>
<th>col3</th>
<th>col4</th>
</tr>
</thead>
<tbody>
<tr class="r1">
<td id="col1">col1</td>
<td>col2</td>
<td></td>
<td id="col99"></td>
</tr>
<tr class="r2">
<td id="col1">col1</td>
<td>col2</td>
<td>col3</td>
<td id="col99">col4</td>
</tr>
<tr class="r1">
<td id="col1">col1</td>
<td class="tdc">col2</td>
<td>col3</td>
<td class="tdr" id="col99">254,52</td>
</tr>
<tr class="r2">
<td id="col1">col1</td>
<td class="tdc">col2</td>
<td>col3</td>
<td class="tdr" id="col99">2.40</td>
</tr>
</tbody>
<tfoot class="rf">
<tr>
<td id="col1">col1</td>
<td class="tdc">col2</td>
<td>col3</td>
<td class="tdr" id="col99">2 545.00</td>
</tr>
</tfoot>
</table>
<p><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.berthou.com/us/2007/11/03/css-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
