cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <?xml version="1.0" encoding="utf-8"?>
<svg  width="300" height="200" viewBox="0 0 300 200" xmlns="http://www.w3.org/2000/svg">

  <rect width="100%" height="100%" fill="lightskyblue"/>
  
  //センターライン
  <line x1="150" y1="0" x2="150" y2="200" stroke="blue"/>
  <line x1="0" y1="100" x2="300" y2="100" stroke="darkblue"/>
 
  //dominant-baseline="text-after-edge"
  <text dominant-baseline="text-after-edge" text-anchor="start" x="200" y="100" font-size="20px"  font-weight="bold">after</text>
  
  //dominant-baseline="middle"
  <text dominant-baseline="middle" text-anchor="middle" x="150" y="100" font-size="20px"  font-weight="bold">middle</text>
  
  //dominant-baseline="text-before-edge"
  <text dominant-baseline="text-before-edge" text-anchor="end" x="100" y="100" font-size="20px" font-weight="bold">before</text>

</svg>
            
          
!
            
              /*


//フォント
font-family

//サイズ
font-size

//カラー
fill

//透明度
fill-opacity

//斜め、イタリック
font-style //normal italic oblique

//太さ
font-weight //normal lighter bold bolder 100-900 

//幅
font-stretch

//始点
text-anchor

//配置
x,y

//角度
rotate(,,)

//枠線
stroke
stroke-width

//下線
underline
underline-position
underline-thickness

//取り消し線
strikethrough
strikethrough-position
strikethrough-thickness

//上線
overline
overline-position
overline-thickness

//文字数
textLength
lengthAdjust

//文字間隔
kerning

//単語間隔
word-spacing

//文字区切りで指定
&lt;tspan&gt;&lt;/tspan&gt;

//その他
tref xlink:href
textPath xlink:href


            
          
!
999px
Loading ..................

Console