May 15, 2022, 4:47am
How am I supposed to create two
tags with no space between them? I am so lost and stuck at step 41. PLEASE HELP!!!
That worked, but there is still a little space on the right of the price.
You could keep trying various percentages for the widths. Instead, simply move the price
p element to be on the same line and make sure there is no space between them.
Welcome to the forum!
Can you show what you tried so far?
The directions don’t want you to create any new tags.
They want you to move the second p tag right next to the first one without spaces.
May 15, 2022, 6:29am
The p tag automatically adds a line break…
I tried deleted the < on the second p tag. It worked, but when I hit submit, the code wasn’t accepted…
I have no idea what I am supposed to do…
I think you are misunderstanding the challenge.
The directions want you to move the second p element right next to the first one.
You don’t need to worry about any css.
Here is an example of what they want you to do.
<p>Example 1</p><p>example 2</p>
You see how the two p tags are right next to each other?
You are supposed to do that with the p tags already there in the html document.
Hope that clarifies.
May 15, 2022, 7:05am
That was so simple I was totally making it more complicated than it is…I thought I had to place the actual text adjacent with no spaces. Thank you for helping me with this.
thanks, really helpful: smile:
Hello! I’m a bit confused about the logic of this challenge because I thought that spaces between HTML tags didn’t matter. Could you please elaborate on why removing the space between the two paragraph tags changed the styling of the page?
Welcome to the forum!
I can understand where the confusion is coming from because it is not really explained in the lesson.
I would suggest reading through this explanation of what is happening.
There are a few code examples and a good article to look at regarding spacing and inline-block elements.
It’s just how inline-block elements behave.
Once upon a time, people made grids using inline-block and there you are to remove the spaces otherwise the elements won’t fit the grid. One method used was to add a comment block between the elements.
January 14, 2023, 1:20pm
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.