0

画像とテキストの折り返しを使用して単色のテーブルを作成するための CSS コードを探しています。これは Squarespace で使用されます。どうやってそれを手に入れることができるか知っている人はいますか?

    <html>
    <head>
        <style type="text/css">
            .mycss {
                background-color: #997E6E;
                border: 21px solid #997E6E;
                color: #FFFFFF;
                font-family: arial, helvetica, sans-serif;
                font-size: 15px;
                font-weight:normal;
                letter-spacing: 1pt;
                line-height:1;
                word-spacing: 2pt;
                text-align: left;
            }
        </style>
    </head>
    <body>
        <p class="mycss">
            As my teacher says, our bodies are the best technology we have! Through it, we can transform ourselves from being blocked and out of balance into being energetic, clear-minded and open-hearted.
        </p>
    </body>
</html>
4

1 に答える 1

0

開発者プラットフォームの外でこれを行っている場合...

p ではなく div 内にクラスを配置します

<div class="mycss">
    <p> As my teacher says, our bodies are the best technology we have! Through it, we can transform ourselves from being blocked and out of balance into being energetic, clear-minded and open-hearted.</p>
</div>

あなたのCSSはボーダーに適しています。このdiv内で画像を右にフロートさせたい場合は、追加します

.mycss img { 
float:right;
}
于 2014-06-30T02:07:09.290 に答える