質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
HTML5

HTML5 (Hyper Text Markup Language、バージョン 5)は、マークアップ言語であるHTMLの第5版です。

XHTML

XHTMLは、eXtensible HyperText Markup Languageの略であり、SGMLベースであるHTMLとは違って、有効なXMLドキュメントにもなるHTMLアプリケーションです。XMLベースのツールを用いて生成されるHTMLページのためによく使われるマークアップ言語です。

HTML

HTMLとは、ウェブ上の文書を記述・作成するためのマークアップ言語のことです。文章の中に記述することで、文書の論理構造などを設定することができます。ハイパーリンクを設定できるハイパーテキストであり、画像・リスト・表などのデータファイルをリンクする情報に結びつけて情報を整理します。現在あるネットワーク上のほとんどのウェブページはHTMLで作成されています。

CSS

CSSはXMLやHTMLで表現した色・レイアウト・フォントなどの要素を指示する仕様の1つです。

Q&A

解決済

1回答

378閲覧

HTMLで文字ゾーンを広げたいです

GKHHKJ

総合スコア39

HTML5

HTML5 (Hyper Text Markup Language、バージョン 5)は、マークアップ言語であるHTMLの第5版です。

XHTML

XHTMLは、eXtensible HyperText Markup Languageの略であり、SGMLベースであるHTMLとは違って、有効なXMLドキュメントにもなるHTMLアプリケーションです。XMLベースのツールを用いて生成されるHTMLページのためによく使われるマークアップ言語です。

HTML

HTMLとは、ウェブ上の文書を記述・作成するためのマークアップ言語のことです。文章の中に記述することで、文書の論理構造などを設定することができます。ハイパーリンクを設定できるハイパーテキストであり、画像・リスト・表などのデータファイルをリンクする情報に結びつけて情報を整理します。現在あるネットワーク上のほとんどのウェブページはHTMLで作成されています。

CSS

CSSはXMLやHTMLで表現した色・レイアウト・フォントなどの要素を指示する仕様の1つです。

0グッド

0クリップ

投稿2022/09/28 03:09

td.iconsの文字ゾーンを広げたいのですが、
HTML初心者でやり方がわかりません。

td.logoのゾーンを狭める方法でも大丈夫です。

教えていただけないでしょうか。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Go Confirm Email</title> <!-- Designed by https://github.com/kaytcat --> <!-- Header image designed by Freepik.com --> <style type="text/css"> /* Take care of image borders and formatting */ img { max-width: 600px; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic;} a img { border: none; } table { border-collapse: collapse !important; } #outlook a { padding:0; } .ReadMsgBody { width: 100%; } .ExternalClass {width:100%;} .backgroundTable {margin:0 auto; padding:0; width:100%;!important;} table td {border-collapse: collapse;} .ExternalClass * {line-height: 115%;} /* General styling */ td { font-family: Arial, sans-serif; color: #5e5e5e; font-size: 16px; text-align: left; } body { -webkit-font-smoothing:antialiased; -webkit-text-size-adjust:none; width: 100%; height: 100%; color: #5e5e5e; font-weight: 400; font-size: 16px; } h1 { margin: 10px 0; } a { color: #2b934f; text-decoration: none; } .body-padding { padding: 0 75px; } .force-full-width { width: 100% !important; } .icons { text-align: right; padding-right: 30px; } .logo { text-align: left; padding-left: 30px; } .computer-image { padding-left: 30px; } .header-text { text-align: left; padding-right: 30px; padding-left: 20px; } .header { color: #232925; font-size: 24px; } </style> <style type="text/css" media="screen"> @media screen { @import url(http://fonts.googleapis.com/css?family=PT+Sans:400,700); /* Thanks Outlook 2013! */ * { font-family: 'PT Sans', 'Helvetica Neue', 'Arial', 'sans-serif' !important; } } </style> <style type="text/css" media="only screen and (max-width: 599px)"> /* Mobile styles */ @media only screen and (max-width: 599px) { table[class*="w320"] { width: 320px !important; } td[class*="icons"] { display: block !important; text-align: center !important; padding: 0 !important; } td[class*="logo"] { display: block !important; text-align: center !important; padding: 0 !important; } td[class*="computer-image"] { display: block !important; width: 230px !important; padding: 0 45px !important; border-bottom: 1px solid #e3e3e3 !important; } td[class*="header-text"] { display: block !important; text-align: center !important; padding: 0 25px!important; padding-bottom: 25px !important; } *[class*="mobile-hide"] { display: none !important; width: 0 !important; height: 0 !important; line-height: 0 !important; font-size: 0 !important; } } </style> </head> <body offset="0" class="body" style="padding:0; margin:0; display:block; background:#ffffff; -webkit-text-size-adjust:none" bgcolor="#ffffff"> <table align="center" cellpadding="0" cellspacing="0" width="100%" height="100%"> <tr> <td align="center" valign="top" style="background-color:#ffffff" width="100%"> <center> <table cellspacing="0" cellpadding="0" width="600" class="w320"> <tr> <td align="center" valign="top"> <table class="force-full-width" cellspacing="0" cellpadding="0" bgcolor="#232925"> <tr> <td style="background-color:#232925" class="logo"> <br> <a href="#"><img src="https://www.filepicker.io/api/file/VbAkyOP8RbGOZKUELbAX" alt="Logo"></a> </td> <td class="icons"> <br> <a href="#"><img src="https://www.filepicker.io/api/file/Rw9fFADxSxK1JyEuQanm" alt="facebook"></a> <a href="#"><img src="https://www.filepicker.io/api/file/WzHKffHYQKe7xpO35hSw" alt="twitter"></a> <a href="#"><img src="https://www.filepicker.io/api/file/doa3fyePR0Kdnu55nlNo" alt="google+"></a> <a href="#"><img src="https://www.filepicker.io/api/file/dresyXUMRjalUp3zvwXC" alt="instagram"></a> </td> </tr> </table> <table cellspacing="0" cellpadding="0" class="force-full-width" bgcolor="#232925"> <tr> <td class="computer-image"> <br> <br class="mobile-hide" /> <img style="display:block;" width="224" height="213" src="https://www.filepicker.io/api/file/CoMxXSlVRDuRQWNwnMzV" alt="hello"> </td> <td style="color: #ffffff;" class="header-text"> <br> <br> <span style="font-size: 24px;">Good news!</span><br> We would like to inform you that your order has shipped! More details below. <br> <br> <div><!--[if mso]> <v:rect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://" style="height:40px;v-text-anchor:middle;width:150px;" stroke="f" fillcolor="#2b934f"> <w:anchorlock/> <center> <![endif]--> <a href="http://" style="background-color:#2b934f;color:#ffffff;display:inline-block;font-family:Helvetcia, sans-serif;font-size:16px;font-weight:light;line-height:40px;text-align:center;text-decoration:none;width:150px;-webkit-text-size-adjust:none;">My Account</a> <!--[if mso]> </center> </v:rect> <![endif]--> </div> </td> </tr> </table> <table class="force-full-width" cellspacing="0" cellpadding="30" bgcolor="#ebebeb"> <tr> <td> <table cellspacing="0" cellpadding="0" class="force-full-width"> <tr> <td> <span class="header">Bob Erlicious</span> <br> 123 Bobby Drive <br> Victoria, BC <br> V9A 8P8 <br><br> </td> <td style="text-align:right; vertical-align:top;"> <span class="header">Invoice: 12345</span><br> June 2, 2014 <br><br> </td> </tr> </table> <table cellspacing="0" cellpadding="0" class="force-full-width"> <tr> <td style="background-color:#dedede; padding: 5px; font-weight:bold; "> Delivery Date </td> </tr> <tr> <td style="background-color:#f3f3f3; padding: 10px 5px;"> June 3rd, 2014 </td> <tr> <tr> <td> <br> <div><!--[if mso]> <v:rect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://" style="height:40px;v-text-anchor:middle;width:150px;" stroke="f" fillcolor="#2b934f"> <w:anchorlock/> <center> <![endif]--> <a href="http://" style="background-color:#2b934f;color:#ffffff;display:inline-block;font-family:Helvetcia, sans-serif;font-size:16px;font-weight:light;line-height:40px;text-align:center;text-decoration:none;width:150px;-webkit-text-size-adjust:none;">Track order</a> <!--[if mso]> </center> </v:rect> <![endif]--> </div> </td> </tr> </table> </td> </tr> </table> <table class="force-full-width" cellspacing="0" cellpadding="20" bgcolor="#2b934f"> <tr> <td style="background-color:#2b934f; color:#ffffff; font-size: 14px; text-align: center;"> © 2014 All Rights Reserved </td> </tr> </table> </td> </tr> </table> </center> </td> </tr> </table> </body> </html>

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

m.ts10806

2022/09/28 03:51

提示されたコードはHTML5ではないような(冒頭の宣言より) ただ、参考にした記事や書籍が古いように思います。
guest

回答1

0

自己解決

<td style=width="250px">で調整できました

投稿2022/09/29 00:30

GKHHKJ

総合スコア39

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問