Claudio
Claudio

Reputation: 904

HTML - First `ul` child

I have an ul with a few lis, but even without CSS, the first li pans outside the list... Here's a FIDDLE

I really can't figure out what's causing it.

Upvotes: 0

Views: 52

Answers (3)

Ashish Kumar
Ashish Kumar

Reputation: 171

update the tag "<a></a>" code as below:

<a id="scroll_1" name="scroll_1" style="top: 100px; margin: 100px;"></a>

Updated your fiddle also

Upvotes: 1

user2718671
user2718671

Reputation: 2976

That's strange. Did you already try to fix with css?

ul li:first-child {
 margin-left:0 !important;
 padding-left:0 !important;
}

Upvotes: 0

Sachin
Sachin

Reputation: 40970

You missed the closing anchor tag

 <a id="scroll_1" name="scroll_1" style="top: 100px; margin: 100px;"></a>

Js Fiddle Demo

Upvotes: 7

Related Questions