Jump to content
  • Advertisement
Sign in to follow this  
Supaflyfrank

[web] Div Border

This topic is 4691 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a couple of div tags which contains span tags and a href tag. Now those div tags are for menu items. So I want to make a general border around those other div tags. So I am trying to contain the other div tags with another div tag. So I apply the style border etc.. for that outer "parent div" and all i get is a horizonal line that is x pixel long and x is what ever i specify the border to be. so it doesnt have a height and its width is the entire screen. So my question is how would I make a border around other div tags. And is their a reason for my problem? Thank you in advance.

Share this post


Link to post
Share on other sites
Advertisement
My guess is that there isn't content in it, and you haven't assigned a height to the div.

<div style="width:100%;height:200px;border:1px black solid">
<div>Other Div Content</div>
<a href="#">Content Here </a>
</div>

Is this what you are asking?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!