我是新来的,对HTML/CSS,所以请原谅我,如果我被这个问题令人难以置信的迟钝。我已经寻找一个答案无济于事,我终于承认失败,并要求...CSS/HTML浮动div继承父宽度和没有响应定义的宽度,怎么了?
我有两个并列的格箱侧使用浮动的容器。没有问题(我希望)。我希望再次分割右手格子框。我认为这不是一个问题,事实证明我错了。我只是无法将包含列表(.includebox)放在旁边的合作伙伴排除列表(.excludebox)里面.helpbox2
我剪切并粘贴了我认为是相关的代码,但我总是可以添加更多。现在的问题是在www.exceptionalcvs.co.uk/help_cv_basics.html上直播,除非我再次绕过它 - 我会尽我所能避免。
HTML
1. Introduction
text here
2. What do I put in my CV?
- Passport number
- Driving license number
- Social Security number
- Martial status
CSS如果
.container{width:960px;margin:0 auto}
.margins{margin-left:16px;margin-right:16px}
.helpbox2{position:relative;top:0;left:0;width:396px;float:right;padding-right:12px;padding-left:12px;padding-bottom:10px;border-bottom:1px solid #999;border-left:2px solid #999;border-top:2px solid #999;border-right:1px solid #999;background:#efe7ca;margin-left:5px}
.incudebox{position:relative;left:0px;right:0px;width:100px;float:left;margin:0px auto;}
.excludebox{position:relative;left:0px;right:0px;vertical-align:top;width:100px;float:right;margin:0px}