/    Sign up×
Community /Pin to ProfileBookmark

need advice on the following issue with text not filling space available

I have an area of text on the homepage of a website

The following css dictates that there is a div on the page in a set position with a set background color etc and all <p> content should be padded 10px from the left and right edges and a specific font size line height etc

[CODE]#homepagetext {
position:absolute;
width:794px;
margin-left:224px;
height:200px;
top:360px;
background-color:#AAA;
color:#000;
z-index:1;
}
#homepagetext p {
padding-left:10px;
padding-right:10px;
font-size:18px;
line-height:25px;
}[/CODE]

In firefox IE and safari on 2 different laptops everything looks fine, the text fills the entire div with a padded 10px at either side

But in the opera browser on my android smartphone the text seems to wrap half way accross the available space causing it to look all bunched up on the left hand side and subsequently go beyond the height of the div that contains it

Can anyone take a stab at why and what i did wrong, can change to fix it etc

Thanks in advance

to post a comment
CSS

0Be the first to comment 😎

×

Success!

Help @BWWebDesigns spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...