473,651 Members | 2,835 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fit to browser code

Hey all,

So, I'm attempting my first web site coded in HTML (and not using a
web page editor thingy), and have encountered my first of what I
expect to be many, many problems :-) I have my background image, and
other images on the page, and I'm wondering if there is any way for
the computer to detect the user's browser setting and adjust my page
contents to fit their window. As in, if a user sees my site in a
screen resolution of 800x600, the whole page fits that window with
needing to implement scroll bars, and if someone else views the page
in 1024x768, they see the page without needing scroll bars. Is there
any way to do this without having to create 2 or 3 completely
different sites for the specific screen resoultion? Did any of the
above make sense? :-) If I should be looking for a javascript, where
can I find it? Or if it would be better off as a flash site, how the
hell do I do that?!?! :-) I'm new to this world of coding, whether it
be simplistic HTML or something far more sinister. Help would be very
much appreciated.

Thanks!!!!
~L.
Jul 20 '05 #1
6 13339
lo*****@ozconne ct.net.au wrote:
I'm wondering if there is any way for
the computer to detect the user's browser setting and adjust my page
contents to fit their window.


http://www.allmyfaqs.com/faq.pl?AnySizeDesign

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #2


lo*****@ozconne ct.net.au wrote:
So, I'm attempting my first web site coded in HTML (and not using a
web page editor thingy)
Your statement doesn't make sense to me. Maybe you're confusing a markup
language with an application.
I'm wondering if there is any way for
the computer to detect the user's browser setting and adjust my page
contents to fit their window.


Yes. <URL:http://www.htmlhelp.co m/faq/html/all.html#screen-size>

Thor

--
http://thorweb.anta.net/
Jul 20 '05 #3
lo*****@ozconne ct.net.au wrote:
and I'm wondering if there is any way for
the computer to detect the user's browser setting and adjust my page
contents to fit their window. As in, if a user sees my site in a
screen resolution of 800x600, the whole page fits that window with
needing to implement scroll bars, and if someone else views the page
in 1024x768, they see the page without needing scroll bars.


Yes... just let HTML and browsers' renditions of it do what comes
naturally, instead of trying to force a particular size on it. No need
to "detect the user's browser setting"... text will re-wrap to the
window width by default if you don't do something that prevents this.

--
== Dan ==
Dan's Mail Format Site: http://mailformat.dan.info/
Dan's Web Tips: http://webtips.dan.info/
Dan's Domain Site: http://domains.dan.info/

Jul 20 '05 #4
lo*****@ozconne ct.net.au wrote:

I'm wondering if there is any way for
the computer to detect the user's browser setting and adjust my page
contents to fit their window.


html does this by default as long as you don't do anything dumb to stop it
doing so

--
eric
www.ericjarvis.co.uk
"live fast, die only if strictly necessary"
Jul 20 '05 #5

<lo*****@ozconn ect.net.au> wrote in message
news:ol******** *************** *********@4ax.c om...
Hey all,

So, I'm attempting my first web site coded in HTML (and not using a
web page editor thingy), and have encountered my first of what I
expect to be many, many problems :-)


Not the least of which are the struggles you have with the nomenclature.
;-)
--
Karl Core

At times one remains faithful to a cause only because its opponents do not
cease to be insipid.
Friedrich Nietzsche

eightninethree AT eightninethree. com
Jul 20 '05 #6
Daniel R. Tobias wrote:
lo*****@ozconne ct.net.au wrote:
and I'm wondering if there is any way for
the computer to detect the user's browser setting and adjust my page
contents to fit their window. As in, if a user sees my site in a
screen resolution of 800x600, the whole page fits that window with
needing to implement scroll bars, and if someone else views the page
in 1024x768, they see the page without needing scroll bars.


Yes... just let HTML and browsers' renditions of it do what comes
naturally, instead of trying to force a particular size on it. No need
to "detect the user's browser setting"... text will re-wrap to the
window width by default if you don't do something that prevents this.

<body BG image=""> ,but you need to compr. this first to make your web-
site faster.(and uploaded ftp the image too)
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
10067
by: Szar | last post by:
JS noob. I've seen plenty of browser detection scripts but they all seem to be slightly different and don't really fit my needs. I have various places where if the browser is IE I'd like to display else . For example, if a browser is IE I want to use this CSS file otherwise use a different one and if it's IE make this cell x pixels high else make it y pixels high. I'm sure this is easy, please excuse my stupidity. Steve.
16
2852
by: Java script Dude | last post by:
To all Mozilla JS Guru's (IE dudes welcome), I have spent the last three years developing complex DHTML applications that must work in IE 5.5sp2+ but I use Mozilla 1.3+** to do all my development. I have build some cross browser debuggers so my users can send me verbose debug dumps. I have some success but have come to a roadblock with the basic underlying JavaScript models. The only way to get a complete stack in IE is to use the...
12
10151
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical scrollbar, you get the height of the entire document, screwing up any chance of centering a window in the browser using these values. Is there a way to get the height of the actual browser window and not the entire page height? Thanks.
17
2541
by: lawrence | last post by:
How is it possible that the question "How do I detect which browser the user has" is missing from this FAQ: http://www.faqts.com/knowledge_base/index.phtml/fid/125 and is only here on this with a link to old information that suggests use of "navigator": http://developer.irt.org/script/43.htm
6
5223
by: hb | last post by:
Hi, Would you please tell me how to detect if the client's browser is closed? I need such event to trigger a database modification. Thank you hb
4
23727
by: Peter Larsen | last post by:
Hi, I want to be able to show a file browser embedded on a form - a browser which is similar to the browser you get by SHBrowseForFolder(). Is that possible ? Thank you in advance. BR Peter Larsen
5
2609
by: Bill Cohagan | last post by:
I'm having some serious difficulties with my ASP.Net 2.0 app rendering in Safari 2.0.3. The most immediate problem is that the menu control doesn't seem to work at all, particularly the use of dynamic levels. I've Googled around a bit and determined that the problem is not so much with Safari as it is with ASP.Net inaccurately determining the browser capabilites for that browser. In the 2.0 Framework it appears that browser caps are...
15
2313
by: CMM | last post by:
So I'm half way through overseeing a large project in ASP.NET 2.0. My superiors have decided that it would be nice if we ensured the site worked on all the major platforms (as they see it: IE, FireFox, and Safari). We've made heavy usage of the new MENU control and other intrinsic 2.0 controls.... nothing fancy! just using ASP.NET's built-in controls and very nice, pervasive, and clean usage of CSS. Now I find after more testing that the...
5
2058
by: jeremy | last post by:
I have an ASP.Net 2.0 application running on Windows Server 2003. The application displays properly in Internet Explorer, however, when I use a browser control embedded in a .net form, I get an error and am directed to the Windows Application Event Log. The following message is logged: ------------- Source: ASP.NET 1.1.4322.0 Event ID: 1062
0
1462
by: etnaelk | last post by:
Hi all, I have a real bugger of a problem that I just haven't been able to figure out. I am working on writing my own proxy server in C# using TcpListener, TcpClient, HttpWebRequest/Response and NetworkStream. I have everything working pretty well except images won't load to their location. ------------------------------------------------------------------------------------------------------------------...
0
8357
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8700
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8465
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8581
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7298
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5612
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1588
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.