How to center wireframe layout in browser window
HELP!!
I've created a set of wireframes for a website in Proto but when I bring them up in a browser window the layout is always left aligned and I cannot figure out how to get the layout to center in the browser window.
I've used margin: 0 auto; on the container div but it does no good, the layout stays left aligned. I'm about to pull my hair out on this one.
The URL is http://www.bluegrasswebservices.com/kpp/index.html
Thanks for your help
Gary
I had the same issue and decided to make the change myself. All you have to do is add a wrapper div, match it to the width of your file and center it via CSS. It would def be much more convenient to have this as an option, but alas your solution is below....
HTML
<div id="wrapper">
Your page content
</div>
CSS
#wrapper{
width: (width of your content);
position: relative;
margin: 0 auto;
Similar Messages
-
How to center flash movie in browser window
Can anyone explain how to horizontally center my Flash movie in the web browser window after publishing?
A bit of background:
I was able to achieve this using <center></center> tags a few years ago. But I have since upgraded to CS5 and I understand that this old method is now obsolete.
I have found a few threads/forums that address this, but I know nothing about HTML and these threads don't help me because they assume you have more knowledge than I possess. When opening up the index.html file in Dreamweaver I can't find anything that looks vaguely familiar to what is being discussed. I have found some code samples using <div></div> tags but have no idea where to place it.
So I will need it explained to me in a step by step fashion, including which file I need to fix and what program I should use. Code samples will be very welcome if you can tell me exactly where it goes.
Thanks in advance...Just realized that there is no scrolling functionality with the .swf generated from the new CS5. Can anyone help out by providing revised code for centering and scrolling?
I found something elsewhere in the forums that worked for both centering and scrolling that worked fine yesterday, but upon visiting my site today for testing, it did not allow the scrolling, and centering did not work in Firefox. Tested both Safari and Firefox on 2 Macs running Snow Leopard.
Again, much appreciated - nice to visit forums where people are interested in helping instead of screaming at each other. Will visit the Illustrator or Indesign forum to see if I can help out someone there... -
How does a servlet close the browser window?
How can a servlet close the browser window it is running in?
I'm running the servlet by calling it in a browser window, passing parameters using POST, with the parameters appearing at the end of the url.
Is there another way to run the servlet, without it affecting the browser window? That would be a better solution. -
How to centre Flash content in browser window?
Hi there
I'm relatively new to Flash, so maybe there's a simple answer to this one.
How do I centre my Flash content horizontally in the browser window? In the Publish Settings I see there are options to align the HTML to Default, Left, Right, Top and Bottom, but no Center. Is there a setting somewhere else? Do I need to write some ActionScript to do this? (If so, what?)
I'd appreciate any suggestions.
(I'm using CS3 on a Mac.)OK, I'm fumbling around a bit here. I see now that the Flash content does resize to fit the window. So, back to my original question: how can I get it to keep its original size but stay centered horizontally in the window?
Any advice would be greatly appreciated. -
How can I open a new browser window!!! Very Challenging!!!
I have a form (name=MAIN) with a submit button (name=Button A). Button A opens a new browser window (name=SEARCH), via an HTML form target tag (<FORM TARGET=A>). Window SEARCH has multiple submit buttons (10-15). Each button has a different action which is handled by a servlet (form name and button name are passed to a servlet as a hidden field in the form to determine the action), which is setup to be an action handler. When a button in the SEARCH window is clicked the results are retrieved from an Oracle database and should be displayed in the text fields in window MAIN.
For example, some results may be displayed in window SEARCH (_self) and and other results may be required to be sent to window MAIN depending on the button clicked.
How can I setup window SEARCH so each button can have a different target window (some may be window MAIN or other windows)? Using a form tag for each button doesn't give desirable results. Is there a way to do this with JSP or some form of Java code?
A form tag can only have one target. Basically I have one form with multiple submit buttons. How can I get it to send each submit buttons results to a specific window?
Thanks.<!-- try this -->
<script language="JavaScript1.2">
function mysubmit(mytarget){
document.myform.target=mytarget;
document.myform.submit();
function validation(myform){
//validation stuff
return [true | false];
</script>
<form target='none' name='myform' action='myaction.jsp' method='post' [onsubmit='return validation(this)']>
<input type=button name='submit1' value='submit1' onclick='mysubmit("target1")'>
<input type=button name='submit2' value='submit2' onclick='mysubmit("target2")'>
<input type=button name='submit3' value='submit3' onclick='mysubmit("target3")'>
<input type=button name='submit4' value='submit4' onclick='mysubmit("target4")'>
</form> -
How to open iview in same browser window
Hi.
I am using EP 6.0
I have created sever iviews of type IAC. All was working fine.
Now suddenly the iviews have started opening in a new browser window. I have check the iview poperty "Launch in new window " . Its set to "Display in Portal Content Area".
All I want is, when I click on any iview, a new internet explorer window should not pop up, but the iview shud open in the same window.
Can anyone advise me how to achieve this ?
Thanx
VikramCan you try and check what happens by changing the work protect mode as follows
Systemadministration -> Systemconfiguration -> Service Configuration -> Applications -> com.sap.portal.epcf.loader -> Services -> epcfloader. Set the "workprotect.mode.default". After you have saved the entry. ricght click on com.sap.portal.epcf.loader in the tree menu and choose "administrate". Click on "restart".
Check this url might be relevant for u
ESS Links open in new windows -
Center html preview in browser window
I've recently created a 800x400 pixel flash document and
published it to html. When previewing in my browser it positions
itself in the upper left-hand corner of my window. What adjustments
to the publishing settings (or html coding) do I need to apply to
center it vertically and horizontally in my browser window at
preview? Thanks for any responses.
typografferit would be of better help if you listed your site. Or if you
posted your code, i could help you with this issue. -
How to center swf in all broswer windows?
I'm having a frustrating time of this. I've tried using a
table at 100% height & width in an html page with no margins,
and it's content centred horixontally & vertically, but in
safari it always positions the swf right at the top of the screen.
I also tried using flash's publish tools, to generate the
html page and cenbtre the content but it always still generates an
html page with the flash movie in the top left corner...grrrrrr
The following link shows a site that acheived perfect
cenering in all teh browsers i've tested in...how do they do this?
is it javascript? If so how? And they also have this great way of
making the browser window open to its maximum possible dimensions
automatically , i love that - ho wcan ai d that also???
Thanks greatly for taking the time to read this post & in
advance of any help,
Cheska,ccesca wrote:
> I'm having a frustrating time of this. I've tried using
a table at 100% height
> & width in an html page with no margins, and it's
content centred horixontally
> & vertically, but in safari it always positions the
swf right at the top of
> the screen.
>
> I also tried using flash's publish tools, to generate
the html page and
> cenbtre the content but it always still generates an
html page with the flash
> movie in the top left corner...grrrrrr
>
> The following link shows a site that acheived perfect
cenering in all teh
> browsers i've tested in...how do they do this? is it
javascript? If so how? And
> they also have this great way of making the browser
window open to its maximum
> possible dimensions automatically , i love that - ho
wcan ai d that also???
>
> Thanks greatly for taking the time to read this post
& in advance of any help,
>
> Cheska,
Most probably you have the DOCTYPE in your html.
This messes up the basic table tags.
You can either remove the line or place this in your html
HEAD tag
<style> html, body {height:100%} </style>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
<style> html, body {height:100%} </style>
</head>
Regards
Urami
Happy New Year guys - all the best there is in the 2006
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free> -
How do I find the current browser window width in pixels?
I'm writing a PHP script that will use the current browser
window width
and height, but I don't know how to find that. Is there some
way to
capture the width and height of the current window in pixels?
TIAThanks Micha, you certainly may ask why.
I posted a message some time ago in the appdev forum about
the Recordset
Paging server behavior being geared toward use with tables. I
was
frustrated because I wanted to do something with repeated
div's in a
liquid site. But the Recordset Paging s.b. locks the number
of records
per page to a fixed number. I'm trying to figure out how to
make the
records per page a variable that's determined by the window
width. I've
created a liquid site with a products page that contains both
text and
thumbnail product images. The text occupies 2/3 of the width
of the
window, and the div container that holds the floated div
thumbnails I
want to account for the other third. The thumbnail div's are
produced by
a WHILE statement and I want them to be paged based on the
number of
div's that will fit within a container that occupies a
percent of the
browser window width. Here's what I've got so:
$window_size_wide = ; // Current browser window width in px
$window_size_tall = ; // Current browser window height in px
$thumb_cont_wide = $window_size_wide * .3; // 30% of window
width incl.
padding in px
$thumb_cont_tall = $window_size_tall * .4; // 40% of window
height incl.
padding in px
$thumb_size_wide = 100; // thumbnail div width incl. margins
in px
$thumb_size_tall = 100; // thumbnail div height incl. margins
in px
$no_thumbs_wide =
ceil(($thumb_cont_wide/$thumb_size_wide)-1);
$no_thumbs_tall =
ceil(($thumb_cont_tall/$thumb_size_tall)-1);
$records_per_page = ($no_thumbs_wide * $no_thumbs_tall);
$offset = ($thispage - 1) * $records_per_page;
$total_pages = ceil($total_records/$records_per_page);
etc.
What I don't know is how to find the current window width or
height. I
would also like to know if the $thumb_cont_wide and the
$thumb_cont_tall
can be determined in some way based on the div size generated
through my
CSS. In other words, I don't want to declare the percent of
height and
width in this script, I want to declare it only in my CSS and
have it
determined by the browser window width and height. The only
element I
want to hard code is the size of the thumbnails as they will
always be
the same. It seems to me that something like this could be
done to make
recordset paging scalable to match a scalable web page.
So the question is, can I define a PHP variable based on a
Javascript
variable? If so, how? If not, how can I accomplish this? Is
this just
not possible?
Thanks for your help. -
How can I open a new browser window from UIX?
I need to open a new browser window from an event handler. How that can be done? HELP!
Thanks!
Martin PatriciHTML doesn't really let you do this on the server side; the client is in charge
of creating new windows, not the server.
If you know that clicking a certain link/button, etc. will always raise a new window,
then you should use Javascript or "targetFrame" accordingly.
If the decision will only be made on the server side, then you could reload the current
window, only this time use an "onLoad" on the <body> to raise a window. -
How to detect the closure of browser window at the client side?
Hi,
Does anyone know how I can detect the closure of the browser window at the client side from the server side?
Please advise.
DamienBasically you can't. People will suggest various Javascript things you could try, but they don't work reliably. So don't try, just make a design that doesn't require knowing that.
-
How to pop up a new browser window to point to an external site
Please help. we want to popup an new browser window when click on a button and the new window is pointing to an external web site.
I can make it work to point to an external site in the same window. But that is not we want to.
I do see some old posting about this but it does not work for us.
Please anyone knows the detail of the steps and code, probably including any environment setting/configuration if required, response to this thread.
thanks a lot in advance!
gguggu,
This is a gimmicky solution but it works and is reusable. Copy your button template and rename it POP_UP_BUTTON. Get rid of the #LINK# substitution string and replace it with:
window.open('#BUTTON_ATTRIBUTES#')Put the URL you want to go to in the attributes section of the button. Put something like "TO_<DOMAIN>" in the button request so it is not totally gibberish and irrelevant. This would be much nicer if the apex engine did not include the "apex.submit()" code inside of the #LINK# substitution string. Or if they provided a second substitution string just for the URL specified.
Here is the old code:
<button value="#LABEL#" onclick="#LINK#" class="button-default" type="button">
<span>#LABEL#</span>
</button>here is the new code:
<button value="#LABEL#" onclick="window.open('#BUTTON_ATTRIBUTES#')" class="button-default" type="button">
<span>#LABEL#</span>
</button>Cheers,
Tyson Jouglet
Edited by: Tyson Jouglet on Jun 17, 2011 8:50 AM -
How do i open a new browser window(IE or Netscape)?
I need to open a new browser window to show a web page returned by a PHP aplication.
If i use an editorpane the returned page is shown unformatted.
PLEASE HELP!
Ruior to open a window using a hyperlink, u can try this:
Link Name
This will open a window and send then send u to the page you want for processing. -
How do I open a new browser window from Flash
I wish to open a new browser window from Flash and when the new window closes to return to the location from whence I started.
ThomasChenThe command to open a new window would be the "_blank" part of a command to link to a web page in the code below.
navigateToURL(new URLRequest("http://www.anothersite.com", "_blank"));
As far as the new window closing and getting back to where you were in the original window, I don't understand where that original window might have gone to... You should be wherever you last left it. -
I'am running across this issue when I'm debugging or running my coded UI automation project, where i get the exception labeled "{"COM object that has been separated from its underlying RCW cannot be used." System.Exception {System.Runtime.InteropServices.InvalidComObjectException}"
everytime i come from a browser window that contains a pdf reader embedded in it. This happens every time I retrieve the window and try to click back. It barfs when i perform the back method on it. I've tried different things but none has worked including
the playback wait.
var hereIsmypdf = ReturnPDFDoc();
public BrowserWindow ReturnPDFDoc()
Playback.Wait(1000);
var myPdFdoc = GlobalVariables.Browser;
return myPdFdoc;
hereIsmypdf.Back();
skinny_WillHi skinny_Will,
<<"{"COM object that has been separated from its underlying RCW cannot be used." System.Exception {System.Runtime.InteropServices.InvalidComObjectException
According this exception error message, I did some research about it. I know that this exception error is occurred in
COM object which was disposed if you are using the COM objects in a same static class or variables which ware shared between tests.
So please you refer the following blog to use ExecutionThread element to instruct the test to use the MTA threading model. This way, the static instance of "store" can be shared across tests.
http://blogs.msdn.com/b/martijnh/archive/2009/12/31/unit-testing-com-object-that-has-been-separated-from-its-underlying-rcw-cannot-be-used.aspx
Note: if you are using the VS2013 to create the coded UI test, you will need to add a test setting file to add this
ExecutionThread.
https://msdn.microsoft.com/en-us/library/ee256991.aspx?f=255&MSPPError=-2147217396
In addition, ad you said that when you playback the browser window that contains an embedded Adobe PDF reader and then it could not work.
I suggest you could try to add more searchproperties to find this target control and then check this issue.
I find a similar thread about your issue, please refer the Steve's code to check your issue.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/73445915-ac08-47de-8bab-b6b07294d0c2/coded-ui-test-wont-find-an-pdf-browser-window-it-times-out?forum=vsunittest
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
"untrusted server cert chain" exception while connecting LDAP server
While connecting to LDAP server using JNDI over JSSE ..This is happening when trying to get the initial context using InitialDirContext initContext = new InitialDirContext(env); where env is a hash table set with the default parametes.The certificate
-
I can no longer sync my iPod as it does not show up in my iTunes anymore, is this because I upgraded my Itunes??
-
Begginer trying to make 2D to 3D moveie clip.
I have watched some Youtube videos on making a 2D still picture into a 3D animation. I have a picture that I cut out 2 images from and filled in the background, but I can't get the images to stand out in 3D. Does Adobe or anyone else have a step by s
-
I can't sync the calendar. I get the message 'sync server can't sync Iphone'.
I cannot sync the calendar from my computer to the Iphone. I receive the message 'sync server failed to sync the Iphone'. I have reset my I phone and reset sync history but it has not worked. I am looking for any solutions to this problem. Thanks
-
OIM 11g support for Temporary roles with expiration date
Dear All, Is there a support provided for temporary roles in OIM 11g? If not, what is the recommendation as for implementation? Kind regards Maria Adair