Jump to content
  • 0

Как заменить тег <h3>


SergMcLaren`
 Share

Question

Подскажите пожалуйста. Выяснилось, что на сайте, названия информационных блоков заключены в тег <h3>. Уже битый час бьюсь, и никак не могу заменить его.

<?php if ($informations) { ?>
  <div class="column">
    <h3><?php echo $text_information; ?></h3>
    <ul>
      <?php foreach ($informations as $information) { ?>
      <li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li>
      <?php } ?>
    </ul>

Как в этом коде заменить тег <h3> на такой же размер шрифта, но чтобы не сломать класс "column"?

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 1
#footer .h3 {
	text-decoration: none;
	background: url('../image/b-header-top_bg.png') repeat-x scroll 0px 0px #0A5595;
	padding: 8px 10px 7px 55px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: normal;
	line-height: 16px;
	color: #fff;
	margin-top: 0px;
	margin-bottom: 8px;
}
<?php if ($informations) { ?>
  <div class="column">
    <div class="h3"><?php echo $text_information; ?></div>

 

Link to comment
Share on other sites

  • 0

Все перепробовал, но никак не пойму что я не так делаю...

Вот стили футера:

/* footer */ 
#footer {
	clear: both;
	overflow: auto;
	border-bottom: 1px solid #dfd1ba;
	background: #f3f0eb;
	-webkit-border-top-left-radius: 4px;
	-webkit-border-top-right-radius: 4px;
	-moz-border-radius-topleft: 4px;
	-moz-border-radius-topright: 4px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
	min-height: 110px;
}
#footer h3 {
	text-decoration: none;
	background: url('../image/b-header-top_bg.png') repeat-x scroll 0px 0px #0A5595;
	padding: 8px 10px 7px 55px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: normal;
	line-height: 16px;
	color: #fff;
	margin-top: 0px;
	margin-bottom: 8px;
}
#footer .column {
	float: left;
	width: 25%;
	min-height: 100px;
}
#footer .column ul {
	margin-top: 0px;
	margin-left: 43px;
	padding-left: 12px;
}
#footer .column ul li {
	margin-bottom: 3px;
}
#footer .column a {
	text-decoration: none;
	color: #0062b4;
}
#footer .column a:hover {
	text-decoration: none;
	color: #000;
}

Ну подскажите как мне заменить тег <h3> вот здесь:

<?php if ($informations) { ?>
  <div class="column">
    <h3><?php echo $text_information; ?></h3>

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Similar Content

    • By Maksim#^&
      Всем привет. Прошу всех оценить мою верстку. А именно по коду где ошибки, чтобы бы вы использовали вместо каких то тегов. По дизайну где че может убрать. Под ie7 не верстал. Подвал еще не доделал. А также классы иногда не корректные давал)) Потому что опыта нету. Вот сайт : http://vacations.besaba.com/
    • By Ge1i0N
      Есть вёрстка, вроде бы всё нормально в ней, но есть один ньюанс.
      Есть два одинаковых блока, со вторым всё нормально, а вот в первом блоке h3 непонятно почему увеличивается по высоте, из-за чего немножко всё едет.
      Если блоки поменять местами, то тогда во втором блоке всё едет, а первый отображается корректно.
      Уж не знаю на что и думать.
      Сама вёрстка тут: http://jsfiddle.net/kAf3a/
      Вот эти два блока должны быть одинаковыми:

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy