<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>https://cacauet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=CSS_menus_desplegables</id>
	<title>CSS menus desplegables - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="https://cacauet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=CSS_menus_desplegables"/>
	<link rel="alternate" type="text/html" href="https://cacauet.org/wiki/index.php?title=CSS_menus_desplegables&amp;action=history"/>
	<updated>2026-04-04T10:24:00Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://cacauet.org/wiki/index.php?title=CSS_menus_desplegables&amp;diff=1172&amp;oldid=prev</id>
		<title>Enric a 21:30, 23 jul 2012</title>
		<link rel="alternate" type="text/html" href="https://cacauet.org/wiki/index.php?title=CSS_menus_desplegables&amp;diff=1172&amp;oldid=prev"/>
		<updated>2012-07-23T21:30:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ca&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 21:30, 23 jul 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Línia 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Utilitzant CSS es poden realitzar menús desplegables. Pots veure el comportament amb les imatges a continuació:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Utilitzant CSS es poden realitzar menús desplegables. Pots veure el comportament amb les imatges a continuació:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Imatge:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;menucss1&lt;/del&gt;.png]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Imatge:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;menuscss1&lt;/ins&gt;.png&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|500px&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Imatge:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;menucss2&lt;/del&gt;.png]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Imatge:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;menuscss2&lt;/ins&gt;.png&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|500px&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;...òbviament es tracta de que esbrinis com fer-ho. Algunes pistes sobre les propietats CSS a utilitzar:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;...òbviament es tracta de que esbrinis com fer-ho. Algunes pistes sobre les propietats CSS a utilitzar:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Enric</name></author>
		
	</entry>
	<entry>
		<id>https://cacauet.org/wiki/index.php?title=CSS_menus_desplegables&amp;diff=1169&amp;oldid=prev</id>
		<title>Enric: Es crea la pàgina amb «Utilitzant CSS es poden realitzar menús desplegables. Pots veure el comportament amb les imatges a continuació:  Imatge:menucss1.png Imatge:menucss2.png  ...òb…».</title>
		<link rel="alternate" type="text/html" href="https://cacauet.org/wiki/index.php?title=CSS_menus_desplegables&amp;diff=1169&amp;oldid=prev"/>
		<updated>2012-07-23T21:28:03Z</updated>

		<summary type="html">&lt;p&gt;Es crea la pàgina amb «Utilitzant CSS es poden realitzar menús desplegables. Pots veure el comportament amb les imatges a continuació:  &lt;a href=&quot;/wiki/index.php?title=Fitxer:Menucss1.png&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Fitxer:Menucss1.png (encara no existeix)&quot;&gt;Imatge:menucss1.png&lt;/a&gt; &lt;a href=&quot;/wiki/index.php?title=Fitxer:Menucss2.png&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Fitxer:Menucss2.png (encara no existeix)&quot;&gt;Imatge:menucss2.png&lt;/a&gt;  ...òb…».&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Utilitzant CSS es poden realitzar menús desplegables. Pots veure el comportament amb les imatges a continuació:&lt;br /&gt;
&lt;br /&gt;
[[Imatge:menucss1.png]]&lt;br /&gt;
[[Imatge:menucss2.png]]&lt;br /&gt;
&lt;br /&gt;
...òbviament es tracta de que esbrinis com fer-ho. Algunes pistes sobre les propietats CSS a utilitzar:&lt;br /&gt;
&lt;br /&gt;
* El menú és una llista d'items HTML (UL, LI), tot i que també es pot fer amb DIVs.&lt;br /&gt;
* Per posar-la horitzontal cal que remenis la propietat CSS '''display'''.&lt;br /&gt;
* Per amagar els submenús també pots utilitzar la propietat '''display'''.&lt;br /&gt;
* Per fer aparèixer un submenú caldrà que controlis els elements quan passa el ratolí per sobre (recorda quin era el [[CSS selectors| selector CSS]] que ho resolia).&lt;br /&gt;
* Et recomano aquesta [http://css-tricks.com/fighting-the-space-between-inline-block-elements/ web per eliminar els blancs entre menús].&lt;br /&gt;
* El 1r element del submenú està massa amunt? Mira de [[CSS selectors|buscar un selector]] per &amp;quot;el primer element d'un conjunt&amp;quot;. Modfifica la propietat del box model adient.&lt;br /&gt;
&lt;br /&gt;
No oblidis arrodonir els elements de les puntes (és una propietat CSS3).&lt;br /&gt;
&lt;br /&gt;
Per anar més enllà:&lt;br /&gt;
* [http://www.colorzilla.com/gradient-editor/ Colorzilla]: pels gradients (degradats de color).&lt;br /&gt;
*Si vols fer que els menús es depleguin &amp;quot;suaument&amp;quot; hauries d'investgar les [http://www.w3schools.com/css3/css3_transitions.asp propietats de transició del CSS3]. En CSS2 es podia fer però calia implementar codi en JavaScript.&lt;/div&gt;</summary>
		<author><name>Enric</name></author>
		
	</entry>
</feed>