Putting the website in the 'center' of the browser
Hi,
This is probably a stupid question, but I'm new to the
Flash/Dreamweaver/Fireworks suite of products.
In creating a website that is, for example, 800 by 500
pixels, how can I place that website 'frame' in the center of the
browser so that somebody in 1024x768 will see the website in the
center (as opposed to the top left corner)?
And a related question - how can I modify the background
color for the empty space not taken up by the designed website?
TIA,
Ren
Put your site inside a div with this css:
#container {
width: 800px; (or whatever width you want)
margin: 0 auto;
Set your background color in css:
Body {
margin: 0;
padding: 0;
background: #CCC; (or whatever solid color you want)
> An example to possibly clear this up is:
>
>
http://www.silksoymilk.com/
- how did they do that? the website is in the
> center, and they have a gradient in the sides? (the
gradient is an image, I
> don't need that, just a solid color)
>
Similar Messages
-
I click on a link and it goes there in Firefox but it doesn't put the browser on top of what I am doing. It used to do that, how can I make it go back to doing that?
I am using Robo Form like I have for years and when I click on a website to open it goes there and puts in the username and password and opens in a new tab but Robo Form stays on top and Firefox is underneath it and it used to automatically go to Firefox and put it on top and now it doesnt do that anymore.
-
Can iWeb put a website in the root of my domain
Hello,
iWeb always seems to take whatever root URL I use and it sticks the whole website beneath that in a folder with the same name. So, for example, my url is www.flatblackfilms.com, but if you type that in, then the URL becomes http://www.flatblackfilms.com/FlatBlackFilms/Home.html
Is there any way to make it put the html files directly beneath the main URL, without the intervening duplicate? So, I want www.flatblackfilms.com/Home.html instead of that longer URL above.
Thanks
BobHi Bob
There's a great tutorial here: http://www.ragesw.com/blog/2010/08/24/how-to-create-visitor-friendly-short-urls- with-iweb/
Jason
PS - This is for uploading to a hosting package as opposed to me.com; which service are you using -
I want to change the language of my Game Center (it was set to German because I put the data of my Austrian credit card)
Mikeandnicki wrote:
I have looked through everything but cannot find a way to delete or spend the 69 cents credit. Can anyone help me?
Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact -
How do i make a tab active and make it stay that way always. If i put a website in my home page in order for the tabs to open automatically in that same homepage , this setting is not working, every time I open a tab , the window appears white .
By default Firefox opens a blank page for a new Tab, there is no setting to change that action without installing an add-on.
New Tab Homepage extension: <br />
https://addons.mozilla.org/en-US/firefox/addon/777 -
like how do i put the two language flag toggles such that you can choose to read the site in russian or english?
On each of the English pages add a Russian flag and link that flag to the Russian equivalent page with the Inspector/Link/Hyperlind pane.
On each of the Russian pages add a US or British flag and link that flag to the equivalent English page.
OT -
Hi, I got the problem with Firefox 27.0.1. I can not run Selenium on Firefox after login a website for automation testing. The browser is not responding. However when I close Nunit, the page is back to be normal. The title is returned to the name of website without "not responding". I sure this problem did not happen on Firefox version 26. I just got this problem when firefox upgrading automatically to version 27. Please help me fix this problem because it is very important for my work. If you need more information pls send your concerns via my email address.
Thanks so muchHi, the work around suggested above should put you in working mode in the meantime. However to help investigate the issue it is possible to analyze what is not loading or taking a long time by analyzing the network traffic or http headers of the Nunit web page.
*[https://addons.mozilla.org/en-us/firefox/addon/live-http-headers/]
*Web developer Tools > Web console
If you post the results with out the user data, we are happy to help. -
How to put the file name in notepad file
dear frank,
how to put the file name in notepad file via power shell. I mean i want to put the file name in that notepad file
for example,
my file name is ABL and in this file data is
02/06/2015,180.00,182.00,176.01,180.50,1575500
02/06/2015,4.20,4.20,4.20,4.20,500
02/06/2015,113.50,113.70,112.91,113.09,157800
02/06/2015,682.01,695.90,682.00,683.19,4250
02/06/2015,213.98,215.00,213.00,214.87,326200
02/06/2015,21.52,21.65,21.52,21.60,4000
02/06/2015,111.00,111.25,108.25,108.91,17100
02/06/2015,52.00,52.00,52.00,52.00,500
and i want to data in this form
ABL,02/06/2015,180.00,182.00,176.01,180.50,1575500
ABL,02/06/2015,4.20,4.20,4.20,4.20,500
ABL,02/06/2015,113.50,113.70,112.91,113.09,157800
ABL,02/06/2015,682.01,695.90,682.00,683.19,4250
ABL,02/06/2015,213.98,215.00,213.00,214.87,326200
ABL,02/06/2015,21.52,21.65,21.52,21.60,4000
ABL,02/06/2015,111.00,111.25,108.25,108.91,17100
ABL,02/06/2015,52.00,52.00,52.00,52.00,500
There are many file like this that i want to be edit
plese tell me how can i do it, i think it is possible via windows power shell.
thanks in advance.Hi
Just for completeness, what version of VB.NET are you using?
Here is a complete project to copy all the files with the added "ABL," at the start of each line. You need to start a new Project with a BLANK default Form1, and replace all of Form1 code with the code below. When you run this project, you
need to use the 2 buttons to set up the ORIGINAL file folder and a folder to place the copies. You need to check if the file EXTENSION is correct (I assumed txt), and check the text to add to each line is correct. Once all is set up you should have a
big red button to start the operation.
NOTE: it is important that you try this out on a copy of some of the files to verify accuracy BEFORE trying on original files. Make sure you have a good back up of the original files before doing anything else.
' new project with default BLANK Form1
' replace all Form1 code with this code
' WARNING: make sure you have a backup of
' any files you use this application to
' operate on.
Option Strict On
Option Infer Off
Option Explicit On
Public Class Form1
Dim OrigFileFolderPath As String = Nothing
Dim CopyToFolderPath As String = Nothing
Dim lab1, lab2, lab3 As New Label
Dim tb1, tb2, tb3 As New TextBox
Dim b1, b2, b3, b4 As New Button
Dim fb As New FolderBrowserDialog
Dim bgw As New System.ComponentModel.BackgroundWorker
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
Me.Size = New Size(731, 300)
With lab1
.Text = "Original Files Folder Path"
.Location = New Point(15, 5)
End With
With tb1
.Width = 560
.Location = New Point(10, 30)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Left Or AnchorStyles.Right
End With
With lab2
.Text = "Copy Files to Folder Path"
.Location = New Point(15, 125)
End With
With tb2
.Width = 665
.Location = New Point(10, 150)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Left Or AnchorStyles.Right
End With
With lab3
.Text = "File Ext"
.Location = New Point(600, 5)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
End With
With tb3
.Text = ".txt"
.Width = 80
.Location = New Point(590, 30)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.TextAlign = HorizontalAlignment.Center
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
End With
With b1
.Text = "Choose Original Files Folder Path"
.AutoSize = True
.Location = New Point(10, 65)
End With
With b2
.Text = "Choose Copy Files to Folder Path"
.AutoSize = True
.Location = New Point(10, 185)
End With
With b3
.Text = "DO THE COPY"
.AutoSize = False
.Size = New Size(240, 50)
.BackColor = Color.Red
.ForeColor = Color.White
.Font = New Font(Me.Font.FontFamily, 20, FontStyle.Bold)
.Location = New Point(420, 80)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
.Visible = False
End With
With b4
.Text = "CANCEL JOB"
.AutoSize = False
.Size = New Size(240, 50)
.BackColor = Color.Red
.ForeColor = Color.White
.Font = New Font(Me.Font.FontFamily, 20, FontStyle.Bold)
.Location = New Point(420, 80)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
.Visible = False
End With
Me.Controls.AddRange({lab1, lab2, lab3, tb1, tb2, tb3, b1, b2, b3, b4})
With bgw
.WorkerReportsProgress = True
.WorkerSupportsCancellation = True
End With
AddHandler bgw.DoWork, AddressOf bgw_DoWork
AddHandler bgw.RunWorkerCompleted, AddressOf bgw_Completed
AddHandler b1.Click, AddressOf b1_Click
AddHandler b2.Click, AddressOf b2_Click
AddHandler b3.Click, AddressOf b3_Click
AddHandler b4.Click, AddressOf b4_Click
End Sub
Private Sub b1_Click(sender As Object, e As EventArgs)
fb.SelectedPath = My.Computer.FileSystem.SpecialDirectories.MyDocuments
fb.ShowNewFolderButton = False
Dim r As DialogResult = fb.ShowDialog
If r = Windows.Forms.DialogResult.OK Then
tb1.Text = fb.SelectedPath
If IO.Directory.Exists(tb1.Text) AndAlso IO.Directory.Exists(tb2.Text) AndAlso Not (tb1.Text = tb2.Text) Then
If tb3.Text = Nothing Then
redo: tb3.Text = InputBox("Enter the file extension that you want to copy/change", "FILE EXTENSION")
If tb3.Text = Nothing Then GoTo redo
End If
b3.Visible = True
Else
b3.Visible = False
End If
End If
End Sub
Private Sub b2_Click(sender As Object, e As EventArgs)
fb.SelectedPath = My.Computer.FileSystem.SpecialDirectories.MyDocuments
fb.ShowNewFolderButton = True
Dim r As DialogResult = fb.ShowDialog
If r = Windows.Forms.DialogResult.OK Then
tb2.Text = fb.SelectedPath
If IO.Directory.Exists(tb1.Text) AndAlso IO.Directory.Exists(tb2.Text) AndAlso Not (tb1.Text = tb2.Text) Then
If tb3.Text = Nothing Then
redo: tb3.Text = InputBox("Enter the file extension that you want to copy/change", "FILE EXTENSION")
If tb3.Text = Nothing Then GoTo redo
End If
b3.Visible = True
Else
b3.Visible = False
End If
End If
End Sub
Private Sub b3_Click(sender As Object, e As EventArgs)
b3.Visible = False
b4.Visible = True
If Not tb3.Text.StartsWith(".") Then tb3.Text = "." & tb3.Text
bgw.RunWorkerAsync()
End Sub
Private Sub b4_Click(sender As Object, e As EventArgs)
bgw.CancelAsync()
End Sub
Private Sub ReadPWFile(fn As String)
Dim filename As String = My.Computer.FileSystem.GetName(fn)
Dim barename As String = IO.Path.GetFileNameWithoutExtension(fn)
Dim copyto As String = tb2.Text & "\" & filename
Dim line As String = Nothing
Dim lines As New List(Of String)
Using sr As IO.StreamReader = New IO.StreamReader(fn)
Do
line = sr.ReadLine()
If Not line = Nothing Then
lines.Add(barename & "," & line)
End If
Loop Until line = Nothing
End Using
Using sw As IO.StreamWriter = New IO.StreamWriter(copyto)
For Each s As String In lines
sw.WriteLine(s)
Next
End Using
End Sub
Private Sub bgw_DoWork(sender As Object, e As System.ComponentModel.DoWorkEventArgs)
Dim ftc As Collections.ObjectModel.ReadOnlyCollection(Of String) = My.Computer.FileSystem.GetFiles(tb1.Text)
For Each f As String In ftc
If bgw.CancellationPending Then
e.Cancel = True
Exit For
End If
Dim ex As String = My.Computer.FileSystem.GetFileInfo(f).Extension.ToLower
If My.Computer.FileSystem.GetFileInfo(f).Extension.ToLower = tb3.Text.ToLower Then
ReadPWFile(f)
End If
Next
End Sub
Public Sub bgw_Completed(sender As Object, e As System.ComponentModel.RunWorkerCompletedEventArgs)
tb1.Text = Nothing
tb2.Text = Nothing
b3.Visible = False
b4.Visible = False
MessageBox.Show("Finished copying files", "Job Completed")
End Sub
End Class
Regards Les, Livingston, Scotland -
Presently using iMac: OS X 10.9.4 (13E28)
1. Open website; click drop-down and this appears:
Before viewing PDF documents in this browser you must launch Adobe reader and accept the end-user license agreement, then quit and relaunch the browser.
2. Using an iMac, open founder and click downloads
3. Click AdbeRdr1013_en_US-1.dmg Apr. 4 2012, 7:11 AM 73 MB Disk Image Feb 27, 2013, 10:00 AM
4. Screen indicates it is opening Adobe reader X installer.package
5. Click this icon
6. Open Adobe installer; double-click install Adobe reader; putting password to access; click next; Note: Application is already installed; click finish.
Screen indicates: thank you and enjoy Adobe reader. Click Return to Prior Website. Click install now: total size 99.1 MB
Initializing arises with the following information: to proceed, open your download folder and locate the Adobe reader installer file, named Adobe reader installer [ XXX].dmg
It takes me back to steps that have already taken of locating down load file double-click to mount the disk image; double-click install Adobe reader; agreed by clicking open; entering name and password and clicking okay.
Did this several times with no success.
11. www.forums.adobe.comSorry if I failed to mention, I have done this as well.
-
My ipod is broken in where you would put the usb cable into the ipod
my ipod is broken in where you would put the usb cable into the ipod to charge it or to connect it to the laptop does anyone know if it can be fixed
Any Apple store or an AASP will repair it for a fee! If you want DIY instructions try the iPod Repair Tutorials and the YouTube "How To" tutorial websites.
-
How can I put a Logo in the Browser-Register?
Hey guys, does anybody knows, how I can put a Logo in the Browser Register? For example, watch this picture below; I want a Logo like the Facebook Logo, but I don't know how I can make this. The blue mark is my Website.
Is this possible with Adobe Muse?
Thank you.Hope this helps
David -
I'm trying to play this new movie i bought with my macbook but every time i put the movie in it makes a noise and only stays there for 6 seconds then ejects itself how can i fix this problem?
Restart your phone,hold the home button and the off button down till the apple symbol comes up. If that doesnt fix it , you need to do a restore in itunes by connecting to itunes , click on your phones name to the left, then click restore in the center of the screen and restore from backup.
-
How to stop the browser redirect me to Chinese version websites?
For example, when I typed in nba.com, it goes to http://china.nba.com/index.html?gr=www. Similarly to bing.com.
In addition, when I shop in any website, the currency shows in CNY other than USD.
I'm using the newest version of Firefox (English version) downloaded from the official website. I run the browser in Windows 7 pro English version. The only personalized setup I made to the system is under the Region and Language, Language for non-Unicode programs is Chinese (simplified, PRC). While this didn't affect other browsers as well as previous version of Firefox. I removed this setup for a while but the Firefox still redirecting the websites to Chinese version.
It really bothered me. I love Firefox. Please help!Are you located in China? If so, the websites determine your location based on your [https://en.wikipedia.org/wiki/IP_address IP address].
There's no universal way to stop this.
* There might be a special URL you can bookmark that always loads the US version of the site, e.g.
** https://www.bing.com/?mkt=en-US
** https://www.google.com/webhp?hl=en
* You usually have to go into the site's preferences (if available), and set your language and locale preference there. This requires allowing cookies from the site in question to store the setting.
''zhuowang1980 wrote:''
Language for non-Unicode programs is Chinese (simplified, PRC).
Foreign non-Unicode programs might run correctly in the English US locale when launched through Microsoft Applocale.
* [https://www.microsoft.com/en-us/download/details.aspx?id=2043 Microsoft Applocale Utility | Microsoft Download Center]
* [http://www.emreakkas.com/windows-tips/how-to-install-applocale-on-windows-7 How to install Applocale in Windows Vista and later | Emre Akkas]
* [http://opcode0x90.wordpress.com/2008/01/09/patch-for-applocale/ Patch for AppLocale | Opcode0x90′s Blog] (gets rid of the pointless nag screen) -
I'm using iTunes 9 and I recently just bought AirPort Express. I have used it before in the past put the problem I have now is that I cannot select the Express network for my speakers. Does Airport Express only work with iTunes 10 or 11?
Hello Hornet12,
Indeed, iTunes 10.2 or later will be required to utilize AirPlay.
Using AirPlay
http://support.apple.com/kb/HT4437
AirPlay requirements and capabilities
To get full AirPlay features, make sure your AirPlay-enabled devices are running the latest software updates. The table below identifies minimum AirPlay requirements and capabilities:
Stream content from
Requirement
Notes
iPad
iOS 4.3 or later.1
From the Videos, iPod, Photos, Music, and YouTube apps on iOS devices, stream videos, music, and photos to an Apple TV (2nd and 3rd generation), or stream music to an AirPort Express or compatible third-party device.
With iOS 4.3 and later, you can also stream video and audio from a website or a third-party app installed on your iOS device if the developer for the app or website has added AirPlay functionality.
iPhone (3GS or later)
iPod touch
(2nd generation or later)
Computer
iTunes 10.2 or later.
Stream videos and music from your iTunes library to an Apple TV (2nd and 3rd generation), or music to an AirPort Express or compatible third-party device.
Apple TV
Apple TV software version 5.1 or later.
Stream music from your Apple TV to another Apple TV (2nd and 3rd generation), to an AirPort Express or compatible third-party device.
Cheers,
Allen -
I went to the website and it said it downloaded, but when I click on the button in my Toolbar, nothing happens. I seen on a search engine that they make "Print Friendly" for Firefox now. Can you tell me where to find it, how to put the button in my Toolbar? I must be doing something or not doing something for it not to be working for me. I am not real computer friendly but I'm not a beginner either. So if you dont mind Please explain to me how to fix this issue in relatively easy step by step instructions. Thank you for your time, Sheybiker
Is this what you are looking for? <br />
http://www.printfriendly.com/browser_tool
'''Click and Drag''' the Print Friendly button to your Bookmarks Toolbar.
Maybe you are looking for
-
My iphone storage is full and I do not have enough storage for upgrades or to take more photos/videos, download apps, etc. I do have my photos/videos ON for icloud sync but not sure if I can safely delete them from my iphone to make room. And if I ca
-
Apple's Tip of the week - Two Seconds to Sleep anomaly
Apple states in its tip of the week "Tip of the Week Two Seconds to Sleep Want the fastest way to put your Mac right into a deep, sleepy-bear hibernation-like sleep (no whirling fan, no dialogs, no sound - nuthin' - just fast, glorious sleep). Just p
-
Add Opportunity status fld to task search
Hi Experts, I have a requirement of adding Opportunity status field only fto Task search.How can i do that?In Standard search for activities provided by SAP it hasOpportunity Id and Name,Please let me know end to end details what I need to do,which s
-
Hi, When I syndicate a record from a repository, the qualified table information is multiplied by number of information in another qualiefied table. For example. Main Table Product, Field - Material ID = A37878F Qualified Table Plant, Fields
-
DB13 Full Database Backup - Error
Hello Everybody, Got this error with DB13 Full Database Backup. 2006-05-28 07:20:13.92 spid91 BackupMedium::ReportIoError: read failure on backup device ' ERB-HQ-BK2\SAPBK\DVE.BAK'. Operating system error 59(An unexpected network error occurred.).