Jump to content

Unable to Apply Styles to a div


straightryder

Recommended Posts

Every other div is basically able to be styled.... one I added another id div it won't let me style the width or height. It just spans the length of the box.

 

Unable to do BG color or anything.

 

It passed strict 1.0 strict but I can't seem to get it to work.

 

Any ideas why something like this is happening?

Link to comment
Share on other sites

You'll have to post the code or a link to the site you are working with.

 

As a completely random guess, you may need to add "overflow:hidden" to your div, in case the items within that div are floated and the outside div isn't wrapping correctly. Just a completely random guess though -- I'd need to look at the code to be sure.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...