简体   繁体   中英

twitter bootstrap 2 column fixed layout broken

my website http://whoisdomains.co.uk/

is using twitter bootstrap http://twitter.github.com/bootstrap/index.html

I am attemptimg to use the two column layout http://twitter.github.com/bootstrap/scaffolding.html#gridSystem

The code they give is

<div class="row">
  <div class="span4">...</div>
  <div class="span8">...</div>
</div>

I however swop the 8 and the 4 around, but dont see why this should make a difference. AS you can see frommy website i have put some dummy text in but its broken and overlaps

You have 2 very long words in spans so they can't be wrapped. Put some space characters into the words and it will be aligned, something like that:

<div class="span8">dskjdskjdskjlsdjlsdj ldjslkd sjkldsjklsdjlsdkjskldj ldksjldskjklsdjl dkjdlsjsdkjkladmdklmc kldmslkcmdlasmkmlkdjslkaj dlkjdsakjsdljlk sjljds</div>
<div class="span4">dkjsasdjsdhakhfl kjhdlkah fklhskldfha skjdhfk hsdklhfkjsdh ajklhfjklshadl kfhsjkadhfkjlh dsfjlhjaksdhfjk hjhdsajlkhdfljhasd ljhflkdhlkfhlkhdskfd</div>

If you check the page using console like firebug you'll see that width of the span divs is correct.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM