Results 1 to 3 of 3

Thread: [RESOLVED] Scaling size of website for different resolutions

Hybrid View

  1. #1
    Join Date
    Dec 2013

    resolved [RESOLVED] Scaling size of website for different resolutions

    Hi and sorry for bothering you guys...
    I am doing website in wysiwyg editor called xara,which uses absolute positioning...I have a problem,which I need help with.I am using resolution 1920x1080..When I view my website in different resolution ,it just looks terrible... I need some solution...
    Maybe some code or script,which would zoom in/zoom out the page depending on the resolution?
    Or something which would scale the page across the whole browser window?,or just convert the absolute positioning website to responsive website?... I don't have any idea how I could solve that and I am desperate It's my first to do page like this.. Please,help...

    Here is my source code..It includes my fail attempts,while I was trying to solve it...

    I will be glad for any help!

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <meta http-equiv="Content-Type" content="text/html; charset=Windows-1250"/>
    <meta name="Generator" content="Xara HTML filter v."/>
    <meta name="XAR Files" content="index_htm_files/xr_files.txt"/>
    <title>Xara Web Designer - A demo website</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" type="text/css" href="index_htm_files/xr_main.css"/>
    <link rel="stylesheet" type="text/css" href="index_htm_files/xr_text.css"/>
    <link rel="stylesheet" type="text/css" href="index_htm_files/custom_styles.css"/>
    <script type="text/javascript" src="index_htm_files/roe.js"></script>
    background-position: 100%;
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js">

    // ** Write a jquery routine :
    <script type="text/javascript">
    $( document ).ready(function() {

    // ** Each dynamic "placeholder" must have this HTML code (body)
    <div id="someid" style="position:absolute; overflow:auto; width:auto; height:auto;">

    // ** load some dynamic content


    <body><!--[if lt IE 9]><style type="text/css">body {background:url('index_htm_files/2808.png') -768px -768px repeat;}</style><![endif]-->
    <!--[if gte IE 9]><!--><script type="text/javascript">//<!--
    document.write("<canvas id='xr_bcv' style='top:0; left:0; position:absolute;'></canvas>");
    function xr_bcvrfr(){var o=xr_bcvrfh();o.width=xr_w;o.height=xr_h;var cx=o.getContext("2d");var gr=cx.createLinearGradient(xr_dx+0,xr_xr.offsetTop+517,xr_dx+0,xr_xr.offsetTop+0);gr.addColorStop(0, "#F1F1F1");gr.addColorStop(1,"#B1B1B1");cx.fillStyle=gr;cx.fillRect(0,0,xr_w,xr_h);};//--></script><!--<![endif]-->
    <script language="JavaScript" type="text/javascript">xr_bckgx=-768;xr_bckgy=-768;</script>
    <div class="xr_ap" id="xr_xr" style="width: 1920px; height: 952px; top:0px; left:50%; margin-left: -960px;">
    <script type="text/javascript">var xr_xr=document.getElementById("xr_xr")</script>
    <img class="xr_ap" src="index_htm_files/2809.png" alt="" title="" style="left: -5px; top: -5px; width: 1940px; height: 972px;"/>
    <div class="xr_ap" id="xr_xri" style="width: 1920px; height: 952px; overflow:hidden;">
    <span class="xr_ar" style="left: 0px; top: 0px; width: 1920px; height: 953px; background-color: #002F59;"></span>
    <img class="xr_ap" src="index_htm_files/2811.png" alt="" title="" style="left: 0px; top: -6px; width: 1916px; height: 958px;"/>
    <img class="xr_ap" src="index_htm_files/2812.png" alt="" title="" style="left: -32px; top: -27px; width: 1984px; height: 141px;"/>
    <img class="xr_ap" src="index_htm_files/2814.png" alt="" title="" style="left: 871px; top: 7px; width: 241px; height: 73px;"/>
    <img class="xr_ap" src="index_htm_files/2815.png" alt="" title="" style="left: 892px; top: 679px; width: 178px; height: 53px;"/>
    <div style="position: absolute; left: 912px; top: 190px; width: 106px; height: 84px;">
    <embed src=http://flash-clocks.com/free-flash-clocks-blog-topics/free-flash-clock-160.swf width=105,6 height=84 wmode=transparent type=application/x-shockwave-flash></embed>
    <img class="xr_ap" src="index_htm_files/2817.png" alt="" title="" style="left: 578px; top: 237px; width: 739px; height: 676px;"/>
    <div class="xr_ap" style="left:872px; top:99px; width:185px; height:192px;">
    <object class="xr_swf" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width="185" height="192">
    <param name="movie" value="index_htm_files/animace.swf"/><param name="wmode" value="transparent"/>
    <!--[if !IE]>--><object type="application/x-shockwave-flash" data="index_htm_files/animace.swf" width="185" height="192"><param name="wmode" value="transparent" /><!--<![endif]-->
    <!--[if !IE]>--></object><!--<![endif]--></object>
    <span class="xr_ar" style="left: 772px; top: 330px; width: 385px; height: 0px; background-color: #FFFFFF;"></span>
    <div class="Normal_text" style="position: absolute; left:794px; top:322px;font-family:Palatino Linotype, Palatino, serif;font-size:20px;color:#FFFFFF;">
    <span class="xr_tc Normal_text" style="left: 124px; top: -21px; width: 107px;font-family:Palatino Linotype, Palatino, serif;font-size:20px;color:#FFFFFF;">Naše akce</span>
    <a href="./publishing.htm" onclick="return(xr_nn());">
    <img class="xr_ap" src="index_htm_files/2821.png" alt="" title="Naše pobočky" onmousemove="xr_mo(this,0,event)" style="left: 633px; top: 520px; width: 126px; height: 126px;"/>
    <img class="xr_ap" src="index_htm_files/2822.png" alt="" title="" style="left: 744px; top: 577px; width: 64px; height: 64px;"/>
    <a href="http://seznam.cz" onclick="return(xr_nn());">
    <img class="xr_ap" src="index_htm_files/2823.png" alt="" title="" onmousemove="xr_mo(this,0,event)" style="left: 1154px; top: 516px; width: 128px; height: 134px;"/>
    <img class="xr_ap" src="index_htm_files/2824.png" alt="" title="" style="left: 243px; top: 7px; width: 669px; height: 609px;"/>
    <img class="xr_ap" src="index_htm_files/2825.png" alt="" title="" style="left: 258px; top: 43px; width: 1570px; height: 786px;"/>
    <a href="http://seznam.cz" onclick="return(xr_nn());">
    <img class="xr_ap" src="index_htm_files/2826.png" alt="" title="" onmousemove="xr_mo(this,0,event)" style="left: 859px; top: 95px; width: 211px; height: 70px;"/>
    <a href="http://seznam.cz" onclick="return(xr_nn());">

    <img class="xr_ap" src="index_htm_files/2846.png" alt="E-mail" title="" style="left: 1127px; top: 527px; width: 209px; height: 83px;"/>
    <div style="position: absolute; left: 1331px; top: 851px; width: 133px; height: 68px;">
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js">

    // ** Write a jquery routine :
    <script type="text/javascript">
    $( document ).ready(function() {

    // ** Each dynamic "placeholder" must have this HTML code (body)
    <div id="someid" style="position:absolute; overflow:auto; width:auto; height:auto;">

    // ** load some dynamic content


    <span class="xr_ar" style="left: 1315px; top: 453px; width: 176px; height: 92px; background-color: #000000;"></span>
    <div id="xr_xd0"></div>
    <!--[if IE]><script type="text/javascript">var xr_swfs=document.getElementsByTagName("object");for(var i=0;i<xr_swfs.length;i++){if(xr_swfs[i].className=="xr_swf")xr_swfs[i].outerHTML=xr_swfs[i].outerHTML;}</script><![endif]-->
    <!--[if lt IE 7]><script type="text/javascript" src="index_htm_files/png.js"></script><![endif]-->
    <!--[if IE]><script type="text/javascript">xr_aeh()</script><![endif]--><!--[if !IE]>--><script type="text/javascript">window.addEventListener('load', xr_aeh, false);</script><!--<![endif]-->
    <iframe scrolling="no" </iframe>

  2. #2
    Join Date
    Mar 2012
    Absolute positioning is a bit of a misnomer, it is fine for building responsive web sites. I use it myself. As to why it is not working in your case, I have no idea, the code you have posted is too complex to easily see what is going on...

  3. #3
    Join Date
    Mar 2011
    Always keep in mind that absolute positioning is performed with respect to the element's parent block-level positioned element. I didn't try to decipher your code either, but when things go wrong, it's almost certain that the containing element of the element you're trying to position has been left to it's default position property setting of 'static'. So then the browser walks up the document tree until it finds a positioned element or ends up at the top of the document and everything looks crazy.

    Set the containing block-level element(s) to "position:relative; top:0; left:0" and there's an excellent chance that the element(s) you want to set to "position:absolute" will perform as intended.
    Rick Trethewey
    Rainbo Design

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.10181 seconds
  • Memory Usage 2,978KB
  • Queries Executed 13 (?)
More Information
Template Usage (29):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (3)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (27):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./includes/functions_threadedmode.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (71):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates