Quote from
luishp on January 18, 2019, 8:27 am
Hi @gaev,
Please, take a look at the "responsive-template" sample included on the VisualNEO Web installation.
In VisualNEO Web, every page can have a different size, so there is not really a Project size.
By default every page have the same size identical to the project size and the <body> tag (page container), but you can change the size of each page through:
Project->Properties->Styles
body{
width:100%;
height:100%;
}
#MyPage{
width:500px;
height:350px;
}
Or you can also try using percentages:
body{
width:100%;
height:100%;
}
#MyPage{
width:70%;
height:70%;
}
But in both situations, remember to reposition the page so it keeps centered by adding this command on the page code tab:
SetRelativePosition "MyPage" "middle" "center"
GetObjectInfo "MyPage" "width" [theWidth]
GetObjectInfo "MyPage" "height" [theHeight]
Use the last code to get the width and height properties from a given page.
Hi @gaev,
Please, take a look at the "responsive-template" sample included on the VisualNEO Web installation.
In VisualNEO Web, every page can have a different size, so there is not really a Project size.
By default every page have the same size identical to the project size and the <body> tag (page container), but you can change the size of each page through:
Project->Properties->Styles
body{
width:100%;
height:100%;
}
#MyPage{
width:500px;
height:350px;
}
Or you can also try using percentages:
body{
width:100%;
height:100%;
}
#MyPage{
width:70%;
height:70%;
}
But in both situations, remember to reposition the page so it keeps centered by adding this command on the page code tab:
SetRelativePosition "MyPage" "middle" "center"
GetObjectInfo "MyPage" "width" [theWidth]
GetObjectInfo "MyPage" "height" [theHeight]
Use the last code to get the width and height properties from a given page.
Gaev has reacted to this post.