/    Sign up×
Community /Pin to ProfileBookmark

Promblems with IE

Hello everybody

This is my code

[code=html]
<html>
<head>
<title>Test</title>
</head>

<body>
<div style=”height: 10px; overflow: hidden;”>
<div>Test</div>
</div>
</body>

</html>
[/code]

The problem is that the text should be visible. One solution to fix it is the following:

[code=html]<div style=”position: absolute”>Test</div>[/code]

But unfortunitly all versions of IE don’t accept that. In all other browsers it works fine.

I only can change the code with the text cause it’s a web application that generate this code!

Any suggestion to solve this issue without javascript?

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@rtretheweyJul 12.2012 — To begin, you need to add a complete <!DOCTYPE> statement to your document to insure that all browsers will render your pages in Standards Compliance Mode - which means they will all try to render the document according to the W3C standards. Search on "doctype switch" and you'll find some good advice.

Second, it looks like you've stripped out too much code for anyone to really be able to help you. In your original code, for example, the <div> is set to a height of 10px, which is too narrow for the browser to display a line of text at any common default size. Is that really the code being used? Post more information and someone will try to help you.
Copy linkTweet thisAlerts:
@jedaisoulJul 13.2012 — Further to the above comments, the text is in a div INSIDE the div in which the height is set. Height is not inherited, so it is not set in the inner div. So the height depends upon the default per browser. Basically the code is nonsense.
×

Success!

Help @develpoer23 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.16,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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