View Single Post
Old 12-29-2025, 04:36 AM   #1
icearch
Enthusiast
icearch began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Nov 2025
Device: none
Which one do you prefer?

I’m working on some project and learning formatting on the go. Then I came to this question:



I have two method that accomplish the same effect :


Code:
<div class="yinyong">
<p>边栏:铁与妖精</p>
<p class="main-ss">随身携带铁器是个绝佳的保命方法,铁乃所有妖精的克星。你常会听到“寒铁”这个说法,但其实任何形态的铁都能有效防御妖精种。我们世界中无处不在的铁器,正是限制精灵在此界活动程度的重要因素。</p>
</div>

Code:
<blockquote>
<p>边栏:铁与妖精</p>
<p class="main-ss">随身携带铁器是个绝佳的保命方法,铁乃所有妖精的克星。你常会听到“寒铁”这个说法,但其实任何形态的铁都能有效防御妖精种。我们世界中无处不在的铁器,正是限制精灵在此界活动程度的重要因素。</p>
</blockquote>

And the corresponding CSS:

Code:
.yinyong
{
	margin-left:0.8em; 
	padding-left:1em; 
	border-left:solid;
	border-width:0.2em;

}

Code:
blockquote
{
	margin-left:0.8em; 
	margin-right:0em; 
	padding-left:1em; 
	padding-right:0em;
	border-left:solid;
	border-width:0.2em;

}

So which one do you prefer in the content of code integrity and easy for maintenance?

Last edited by icearch; 12-29-2025 at 04:42 AM.
icearch is offline   Reply With Quote