3 replies [Last post]
cky
cky's picture
Offline
newbie
Ormož
Last seen: 12 years 5 weeks ago
Ormož
Timezone: GMT+2
Joined: 2010-03-30
Posts: 2
Points: 3

Hello! I have a problem with position of Flash gallery in my page. When i open it in 1366x768 it looks fine, becuase i configured that way. But when i change resolution to anything else (just width resolution) isnt in position anymore.

Link: Site

CSS:

P.sredina {
    margin-left: auto;
    margin-right: auto;
    margin-top: -46px;
    width: 950px;
}
 
#gallery {
    margin-left: 500px;
    margin-right: auto;
    margin-top: -500px;
    #position:absolute;
    #width: 10px;
}

html:

<P class="sredina">
<html>
<body>
<img src="graficno.gif" usemap="#omeni" />
<map name="omeni">
<area shape="rect" coords="610,0,789,125" alt="Domov" href="index.php" alt="Domov" />
</map>
<div id="gallery">
<object width="442" height="255">
<param name="movie" value="flow/move_to_framenumber_demo.swf">
<embed src="flow/move_to_framenumber_demo.swf" width="442" height="255">
</embed>
</object>
</div>
</html>
</body>
</p>

If there is anyone that can help, please. And thanks in advance.

Caposoft
Caposoft's picture
Offline
Enthusiast
Last seen: 7 years 15 weeks ago
Timezone: GMT+1
Joined: 2008-03-16
Posts: 330
Points: 118

Absolute positioning

that is because you positioned your #gallery absolute. Absolute positioning takes your element out of the sites' flow. So when you resize your browser it doesn`t move with the resizing because it is stuck in exactly that position that you defined when positioning it absolute. Google floating elements or make a search here in the forum since this question appears frequently.

cky
cky's picture
Offline
newbie
Ormož
Last seen: 12 years 5 weeks ago
Ormož
Timezone: GMT+2
Joined: 2010-03-30
Posts: 2
Points: 3

Sorry but thats not that. I

Sorry but thats not that. I would like that that flash gallery would take position based on P.sredina width becuase that never changes. And would be good if i would take i dont know 60% of p.sredina width not whole html. And it would be inside this picture (P.sredina in css).

Caposoft
Caposoft's picture
Offline
Enthusiast
Last seen: 7 years 15 weeks ago
Timezone: GMT+1
Joined: 2008-03-16
Posts: 330
Points: 118

Didn`t see the link

since you weren`t very exact in your opening thread neither so friendly to post all html and css guessing was my only chance. You might want to validate your markup before you wonder and worry about strange appearance.