I've built a couple of sites recently which when viewed on a mobile browser the text reflows to the width of the screen as expected. However, I'm in the process of building another one and for some reason I cannot get the text to reflow, it stays the same width as a full browser which means lots of vertical scrolling.
I've checked my CSS and everything looks the same as previous sites so not sure what the problem is.
Relevant code is:
Its the content in #article that will not reflow.
Anyone got any suggestions? I've tried changing the width of #article and #right_col to percentages but this makes no difference.
Thanks
I've checked my CSS and everything looks the same as previous sites so not sure what the problem is.
Relevant code is:
Code:
<div id="page">
<div id="header">
<div id="logo">
<a href="/" title="#"><img src="/images/logo.jpg" alt="#"></a>
</div>
<div id="top_nav">
<?php $top_nav = new Area('Top Nav'); $top_nav->display($c); ?>
</div>
<div id="top_separator">
</div>
</div>
<div id="content">
<div id="article">
<?php $article = new Area('Article'); $article->display($c); ?>
</div>
<div id="right_col">
<?php $right_col = new Area('Right Column'); $right_col->display($c); ?>
</div>
</div>
</div>
Code:
html, body {
height: 100%;
font-family:Arial, Helvetica, sans-serif;
}
body {
padding: 0px;
margin: 0px;
background-color:#fff;
}
#page {
width:960px;
margin:0 auto;
}
#content {
width:960px;
margin:0;
padding:0;
}
#article {
float:left;
width:700px;
}
#article img {
margin-right:10px;
}
#right_col {
float:right;
width:200px;
padding-top:15px;
}
Its the content in #article that will not reflow.
Anyone got any suggestions? I've tried changing the width of #article and #right_col to percentages but this makes no difference.
Thanks