0

I want to set fixed width to my div that is set as display:inline without using float because it ruins my layout. Is there a way to do this? Thanks in advance.

0

1 Answer 1

2

It is not possible to set a width for an element with display:inline.

Try using: display: inline-block.

Sign up to request clarification or add additional context in comments.

1 Comment

So why don't you consider to mark the answer as accepted? It'll help others to quickly find the answer. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.