View Single Post
Old 12-29-2025, 03:36 AM   #1
icearch
Zealot
icearch can extract oil from cheeseicearch can extract oil from cheeseicearch can extract oil from cheeseicearch can extract oil from cheeseicearch can extract oil from cheeseicearch can extract oil from cheeseicearch can extract oil from cheeseicearch can extract oil from cheese
 
Posts: 121
Karma: 1000
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 03:42 AM.
icearch is offline   Reply With Quote