I have an interface with some <a> tags, at the end is a div with some more <a>‘s that has a display:none attributed to it. When the user clicks a button, it fires some javascript that unhides the hidden div. The problem is I have a border around the containter div, and want it to expand when I unhide the nested div. The issue is that all my anchor tags, in and out of the hidden div, just list horizontally unless I specify a fixed-width. Any help
(aside: Would a <span> be better here over a <div> for the hidden portion?
spanis completely different than adiv. If as per your design needs you need a block-level elemnts (the one you could givewidthto), go for adivelsespanshould be fine.If you want the links to appear vertically, you should apply this style to them:
Or probably:
If you want to maintain the inline characteristics of the links as well.