How to use css to style xhtml markup made only of divs like a table

See source code of this http://jsbin.com/iveso I can't change anything in xhtml code. And i need cross browser output exact like this. ![alt text][2] How we can give same look with less and optimize css [2]: http://easycaptures.com/fs/uploaded/445/5025516010.jpg This is CSS #ConferencesContainer { overflow:hidden; } #ConferencesContainer img { float:left; padding:0 10px 10px 0; } #ConferencesContainer #ConferencesItemsContainer img { float:none; padding:0; } #ConferencesHeaderContainer { font-size:1.1em; font-weight:bold; margin:10px 0; overflow:hidden; } #ConferencesTitleHeaderContainer { float:left; width:40%; } #ConferencesPDFHeaderContainer { float:left; text-align:center; width:20%; } #ConferencesExternalLinkHeaderContainer { float:left; text-align:center; width:20%; } #ConferencesHtmlHeaderContainer { float:left; text-align:center; width:20%; } .Conferencesnorth-america-2009ItemContainer { border-bottom:1px solid #008999; overflow:hidden; padding:5px 0; position:relative; } .Conferencesaustralia-and-asia-2008ItemContainer { border-bottom:1px solid #008999; overflow:hidden; padding:5px 0; position:relative; } .Conferencesinvestor-conference-2008ItemContainer { border-bottom:1px solid #008999; overflow:hidden; padding:5px 0; position:relative; } #ConferencesContainer .ConferencesTitleContainer { float:left; padding:2px 0; width:40%; } #ConferencesContainer .ConferencesPdfContainer { float:left; left:40%; position:absolute; text-align:center; width:20%; } #ConferencesContainer .ConferencesExtLinkContainer { float:left; left:60%; position:absolute; text-align:center; width:20%; } #ConferencesContainer .ConferencesHtmlContainer { float:left; left:80%; position:absolute; text-align:center; width:20%; } #ConferencesAcrobatWarningContainer { float:left; padding-top:20px; } .Conferencesaustralia-and-asia-2008ItemContainer #ConferencesasiaTitleContainer { font-weight:bold; } .Conferencesaustralia-and-asia-2008ItemContainer #ConferencesaustraliaTitleContainer { font-weight:bold;} **Edit:** **I found links which are useful for me** 1. http://snook.ca/archives/html_and_css/getting_your_di 2. http://www.dev-archive.net/articles/table-in-css.html
I would think someone with 1.8K reputation would know that they should post some code for questions like this...

以上就是How to use css to style xhtml markup made only of divs like a table的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » CSS3 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏