2 replies [Last post]
gautamz07
gautamz07's picture
Offline
Enthusiast
Last seen: 3 years 3 weeks ago
Timezone: GMT+5.5
Joined: 2014-04-24
Posts: 265
Points: 403

Check this out the fiddle Js fiddle

the question really says it all . why is that the width is not being accepted without The float property .

P.S.

In the fiddle take off the the float property and you will know what i am talking about .

Kind regards.

Gautam.

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 15 hours 1 sec ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

Hi gautamz07, Labels are

Hi gautamz07,
Labels are inline elements, so take on the width of their content unless you float them or change the display property to something else. eg. block, inline-block.

gautamz07
gautamz07's picture
Offline
Enthusiast
Last seen: 3 years 3 weeks ago
Timezone: GMT+5.5
Joined: 2014-04-24
Posts: 265
Points: 403

Thank you

Thank you Sir .