<p> Joe's Fruit and Vegetables started out as a traditional
store selling store selling fruit and veg along with other commodity
items such as milk, soft drinks and sweets etc. Joe's has been in business
for 27 years and has reputation for the quality of their goods.</p>
Pictures would be good to help explain this to me.
Simply it is about use of class as a selector in CSS. In other words, on your first CSS code effect will gives for the body content,
Code:
<p> Joe's Fruit and Vegetables started out as a traditional
store selling store selling fruit and veg along with other commodity
items such as milk, soft drinks and sweets etc. Joe's has been in business
for 27 years and has reputation for the quality of their goods.</p>
For second CSS code wont give any effect until you change the above code as follows,
Code:
<p class="first"> Joe's Fruit and Vegetables started out as a traditional
store selling store selling fruit and veg along with other commodity
items such as milk, soft drinks and sweets etc. Joe's has been in business
for 27 years and has reputation for the quality of their goods.</p>
And also you are in wrong forum. On the HTML, CSS etc forum you can found more details. Administrator should move this later.
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
[COLOR="DarkGreen"]Simply it is about use of class as a selector in CSS. In other words, on your first CSS code effect will gives for the body content,
Yeah, I have read that but when I test both codes they both appear to give the same result on the page! Attached is the result of using the following code:
html:
Code:
<p class="first"> Joe's Fruit and Vegetables started out as a traditional
store selling store selling fruit and veg along with other commodity
items such as milk, soft drinks and sweets etc. Joe's has been in business
for 27 years and has reputation for the quality of their goods.</p>
<p> Joe's Fruit and Vegetables started out as a traditional
store selling store selling fruit and veg along with other commodity
items such as milk, soft drinks and sweets etc. Joe's has been in business
for 27 years and has reputation for the quality of their goods.</p>
I can't tell the difference in the result! I think maybe I am coding it incorrectly!
Last edited by Nightwalker83; Oct 15th, 2007 at 08:12 AM.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
It is 100% correct. You should get the same output.
I'll explain it in this way. First thing you have to make sure is first-letter is a CSS style attribute.
If you use the code as follows,
Code:
<p class="first"> Joe's Fruit and Vegetables started out as a traditional
store selling store selling fruit and veg along with other commodity
items such as milk, soft drinks and sweets etc. Joe's has been in business
for 27 years and has reputation for the quality of their goods.</p>
Because there you have create a class in p tag as p.first If you don't use class="first" it is still direct to same CSS code. Because it works on <p></p> tags and p CSS code.
If you use the code as follows,
Code:
<p> Joe's Fruit and Vegetables started out as a traditional
store selling store selling fruit and veg along with other commodity
items such as milk, soft drinks and sweets etc. Joe's has been in business
for 27 years and has reputation for the quality of their goods.</p>
it directed to the other CSS code. Because there is not use a class. That time <p></p> tags used the following CSS code,
You don't get the difference here. It is true. Check both CSS code. Both are same, do the first appear as italic. Try to change one of them, may be as follows,
<p> Joe's Fruit and Vegetables started out as a traditional
store selling store selling fruit and veg along with other commodity
items such as milk, soft drinks and sweets etc. Joe's has been in business
for 27 years and has reputation for the quality of their goods.</p>
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
You are welcome. So it is clear now. The thing is CSS has such resources in bunches. Some of them are like same but the way it works are difference.
Yeah, the difference between is clear now!
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
Last edited by Nightwalker83; Oct 17th, 2007 at 02:07 AM.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672