<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mohamed Ed-daouy</title>
    <description>The latest articles on DEV Community by Mohamed Ed-daouy (@mohamed_eddaouy_fc85a3f0).</description>
    <link>https://dev.to/mohamed_eddaouy_fc85a3f0</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2573817%2F2e132f1c-5f26-4b03-a520-e16f0d9c1c7d.jpg</url>
      <title>DEV Community: Mohamed Ed-daouy</title>
      <link>https://dev.to/mohamed_eddaouy_fc85a3f0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mohamed_eddaouy_fc85a3f0"/>
    <language>en</language>
    <item>
      <title>Css gradients:linear-gradient()</title>
      <dc:creator>Mohamed Ed-daouy</dc:creator>
      <pubDate>Tue, 17 Dec 2024 11:19:40 +0000</pubDate>
      <link>https://dev.to/mohamed_eddaouy_fc85a3f0/css-gradientslinear-gradient-4fnj</link>
      <guid>https://dev.to/mohamed_eddaouy_fc85a3f0/css-gradientslinear-gradient-4fnj</guid>
      <description>&lt;p&gt;linear-gtradient() css function creates a linear gradient as the background &lt;br&gt;
the syntax is :&lt;br&gt;
a css selector{&lt;br&gt;
background-image:linear-gradient(angle,color1,color2,color3,......);&lt;br&gt;
}&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;angle :optional is references to the direction of gradient &lt;br&gt;
by default is 180deg &lt;br&gt;
instead of deg we can use these for key-words to determine the direction:&lt;br&gt;
*&lt;em&gt;to right :equals 90deg&lt;br&gt;
**to left :equals 270deg&lt;br&gt;
*&lt;/em&gt; to top:equals 0deg&lt;br&gt;
**to bottom:equals 180 deg(is optional because the degree in llinear-radient() is to bottom&lt;br&gt;
**color1 :required we this value consists o a color value followed by&lt;br&gt;
 an opotional color stop one or two positions (a percentage  between 0% and 100% or a length along the gradient axis ).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;h1&gt;
  
  
  gradient {
&lt;/h1&gt;

&lt;p&gt;height: 200px;&lt;br&gt;
  /* A gradient tilted 45 degrees,&lt;br&gt;
   starting blue and finishing red &lt;em&gt;/&lt;br&gt;
/&lt;/em&gt;&lt;br&gt;
/*&lt;br&gt;
background-image:linear-gradient(45deg, blue, red);&lt;br&gt;
*/&lt;/p&gt;

&lt;p&gt;/* A gradient going from the bottom right to the top left corner,&lt;br&gt;
   starting blue and finishing red &lt;em&gt;/&lt;br&gt;
/&lt;/em&gt;&lt;br&gt;
/*&lt;br&gt;
background-image:linear-gradient(to left top, blue, red)&lt;br&gt;
*/&lt;/p&gt;

&lt;p&gt;background-image:linear-gradient(to right, red ,50%, blue)&lt;/p&gt;

&lt;p&gt;/*&lt;br&gt;
 Multi-position color stop: A gradient tilted 45 degrees,&lt;br&gt;
   with a red bottom-left half and a blue top-right half,&lt;br&gt;
   with a hard line where the gradient changes from red to blue&lt;br&gt;
 */&lt;/p&gt;

&lt;p&gt;/* &lt;br&gt;
background-image :linear-gradient(&lt;br&gt;
45deg,&lt;br&gt;
 red 0 50%, &lt;/p&gt;

&lt;p&gt;blue 50% 100%);&lt;/p&gt;

&lt;p&gt;*/&lt;/p&gt;





</description>
      <category>webdev</category>
      <category>programming</category>
      <category>css</category>
    </item>
  </channel>
</rss>
