So, you want to have divs that float to the left, and then have a surrounding div with a border? But what happens is that the outer div is rendered with no inner area and looks like a collapsed line and the inner divs float left ontop of it?
a simple fix is the following: just make your outer div have a width setting, so it can render without an unknown value which causes the collapse problem
CSS
.dropdown
{float:left;padding:8px;}
.eventArea
{width:600px;border:solid;border-width:1px 1px 1px 1px;}
HTML
<form name="event" action="add_events.php" method="POST">
~<div class="eventArea">
~~<div class="dropdown" id="month" class="month">month</div>
~~<div class="dropdown" id="day" class="month">day</div>
~~<div class="dropdown" id="year" class="month">year</div>
~</div>
</form>
border around div with inner divs that float left
Any little quirks or help I can muster out of my fingers at the end of the day
-
- Site Admin
- Posts: 253
- Joined: Tue Oct 27, 2009 9:33 pm
Jump to
- Software and hardware tips
- ↳ 3D
- ↳ actionscript2 as2
- ↳ Actionscript 3 as3
- ↳ after effects
- ↳ android
- ↳ Apple osX support
- ↳ CPP C++ Setup, Programming, and Quirks
- ↳ CSS
- ↳ digital phone systems
- ↳ drupal
- ↳ Fallout 4 Mods
- ↳ game tips and tech
- ↳ HDV video
- ↳ HTML5
- ↳ Infected Software
- ↳ javascript
- ↳ Java programming
- ↳ laptop repair
- ↳ MySQL
- ↳ osx86 fun
- ↳ php scripting and programming
- ↳ Regular Expressions In Varying Programs
- ↳ ruby | ruby on rails | win7
- ↳ Shared Server Help
- ↳ Virus removal
- ↳ Virtual Machines
- ↳ Virtual Reality VR
- ↳ vista support
- ↳ Visual Studio 2015
- ↳ vpn
- ↳ web plugins addons
- ↳ win xp
- ↳ windows 7 support
- ↳ windows 8 support
- ↳ windows 10 support
- ↳ wordpress
- ↳ XBOX One X
- ↳ Windows 11 support
- online website reviews
- ↳ not refurbished but broken products
- internet crime evidence
- ↳ phony websites with fake credentials selling items
- writing
- ↳ science fiction
- Debunking Myths
- Film TV and Media Reviews
- ↳ Film Reviews