• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 626
  • Last Modified:

Span top-margin no effect


check here with firefox please :


I want to align the text
"Mail échoué. Excusez-nous........."
with the menu.

I have put this text in a span with margin-top inside a div, but the top margin of the span has no effect.

(I cannot change this structure, actually I load ajax into the div, so I had to make a span inside the div with top margin)

Thank you for any help.

[...]    <div id="contentwide"><span style="margin-top: 20px;">Mail échoué.<br>     [...]
1 Solution
Mark StegglesWeb DeveloperCommented:
Hi Matthew,

You cannot give an inline element vertical margin/padding... either change it to a p tag, or you can add display:block to the span

matthew016Author Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now