Hele
Hele

Reputation: 1578

FRAMESET set into center of page using CSS

I have the following code :

<!DOCTYPE html>
<html>
<head>
<style type="text/css">
    .mpanefset { top: 41px; left: 181px; position: fixed; width: 100%; height: 100% }
</style>
</head>

<frameset class="mpanefset" cols="*">
    <frame src="action.html">
</frameset>
</html>

The code is meant to create a frame at location 181,41 with the src as action.html.

It loads the page, but does not position it at the location.

Any help is appreciated. Thanks.

Upvotes: 1

Views: 1197

Answers (1)

Jaykumar Patel
Jaykumar Patel

Reputation: 27614

You can't set <FRAMESET> tag on your custom defined location 181,41.

<FRAMESET> is the alternate option for <BODY>

You are use any of one either frameset or body. This way you can not set frame on your defined positioning. keep it mind frameset start from top: 0 and left:0 position only. you have to set base on this positioning.

Frameset is well known for create a problems and be not search engines friendly, and is not well supported by all browsers. And now It's might be deprecated, so please don't use frameset.

Upvotes: 3

Related Questions