Home Literature Stories Movies Games Comics Blogs News Discussion Forum Art Gallery
  Science Fiction and Fantasy News
T. C. McCarthy wins Compton Crook Award (05-24)
New Gemmell Book Announced (04-16)
David Gemmell Award 2012 Short List (04-08)
EDGE LIT Event, Derby (UK) (03-15)

Official sffworld Reviews
The King's Blood by Daniel Abraham (05-23 - Book)
BLACKOUT by Mira Grant (05-22 - Book)
Invincible by Jack Campbell (05-15 - Book)
The Science of Avatar by Stephen Baxter (05-14 - Book)


Site Index

    Bookmark and Share


View Full Version :

html questioning


Pages : [1] 2

alcatraz
January 28th, 2002, 09:22 AM
I was wondering if there was a way to make a website's background the size of the browser window, rather than a specific number of pixels. I'd also like the code for making a site full screen.

Thanks,
Alcatraz

Carmichael
January 28th, 2002, 09:44 AM
I don't know if that is even possible for a couple of reasons:

1)Images on a computer are made at specific dimensions. I.E. 800 by 600, 400 by 400 etc. Any HTML coding that could change that would also alter the images look, stretching it and altering the level of detail. A 400 pixel image is going to look really pixelated stretched out to 800dpi.

2) The coding would have to be able to change for every single user. Not everyone uses the same screen dimensions. I have an older system at home, it uses 32-bit 800 by 600 graphics. The system at work is 16-bit 1024 by 768 while the labs at school use more advanced graphical systems. That 400dpi image on my home sytem is much smaller looking on the one at work. Basically you would have a background image that would be distorted by the html depending on which computer you use to view the page.

I don't know if any of that is helpful. . .
If you do find a piece of html that will do that, could you let me know? I would like to see it in action myself.

Carmichael

Sponsor ads
daigoro
January 30th, 2002, 09:11 AM
Well, I guess it depends on what you are trying to do, it is as Carmichael says stretching images isn't a good idea.

On the other hand if you could use some sort of tiled background you could use that as a background in table rows/cells that span the whole browser window and so on... or on the page itself. I guess you could also use javascript to detect the users screen resolution and load the correct background image for that resolution. Using DHTML you could probably create a lot of great effects also, but I guess it all depends on what you mean by a website background.

As for coding a site so that it always uses the whole screen width. It's just a matter of setting the width of the tables to percentage instead of pixels.

Am I making any sense here?

Carmichael
January 31st, 2002, 02:52 PM
I just remembered a DHTML site you might want to look at. The have some stuff that might cover what you're looking for. http://www.dynamicdrive.com/

I have gotten some interesting little trick from that one.

Carmichael

alcatraz
February 11th, 2002, 12:43 PM
The day after I posted, my friend told me about dynamic drive, so I got some coding there. I didn't find anything in the manner of background size being a percentage, but I found the coding to make the browser window itself fullscreen. I then made two versions of my site, one of which being 800x600, and the other being 1024 sommat by 684 (did I get those numbers right?). I got a suggestion to try using tables, but I suck at those and won't try that yet.

I'm also wondering if anyone knows anything about netscape. It doesn't support DHTML or some HTML codes that I'm using. Does anyone know a way around this or when they're gonna fix this.

The DHTML coding I use is mainly the fullscreen code (maybe it's the java portion, not the DHTML) and the HTML I'm using that netscape doesn't like is: style="visibility: hidden;" which makes an image invisible (sorta obvious, I suppose)

Thanks,
-Alcatraz

hclark
February 20th, 2002, 08:37 AM
The way around the differences is to use a browser detect (sometimes called sniffer) script that determines what browser a person is using and sends them to a page built for that particular browser. Then you have to develop multiple versions of your page, but if you want things to look nice in all browsers that might be your only option. You must remember too, that there are other browsers out there besides IE and Netscape. I use Opera most of the time. Of course if this is more of a personal site you might not be as concerned about accomodating people.

As for your problem with code not rendering correctly, most likely they're not going to "fix it". In many cases Netscape is following closely to the standards set by the W3C. IE builds in things that they think people will like but are not always standards compliant so your code works in their browser but not Netscape. They tend to do whatever serves MS and their products the best. IE also will render code that is not well written where Netscape expects you to use good code.

Check out the CSS validator and the HTML Validator at http://www.w3.org/. If your site is compliant with those you will be doing good.

One question, why do you want to make an image invisible? If you want an invisible image, why not just use one?


[This message has been edited by hclark (edited February 20, 2002).]

alcatraz
February 20th, 2002, 11:19 AM
Thanks, I'll check out that site. The reason I wanted an invisible image was for a link that corresponds w/the background. Could you send me a nice transparent image? that would be nice. I was also using them as spacers because I don't know how to place an object exactly where I want it. It was a sort of spurr of the moment thing, "Oh! Look! That looks like crap! Hmmmm...maybe if I move it forward a bit by putting an image there, making it this size, and making it invisible...WOW! That's nice!". The next day I was on a netscape browser and wondered why it looked like crap once again. I checked my coding and it was fine. Amazing how inconvenient netscape is.

-alcatraz

SirRob
March 2nd, 2002, 11:48 PM
Are you mad!!!!!! Not using tables http://www.sffworld.com/ubb/frown.gif. You cant make a website without tables. Well not a good one.

Bond
March 3rd, 2002, 09:42 AM
I'm not very experienced at website design but I have observed most of the better looking websites with lots of pictures I've visited use tables.

Also what program are you using? Don't many of the WYSIWYG HTML editors pretty much make this kind of thing a breeze?

I don't think you should blame Netscape. From what I hear they stick closer to conventions than Microsoft.

alcatraz
March 9th, 2002, 11:23 AM
Well, IE keeps to what people seem to like and use. No one really cares about keeping to the conventions as long as it reads the majority or the scripts out there. IE does; Netscape doesn't. I'd really like to use tables, but I'm retarted and no one seems to want to teach me. I use angelfire for my site, but I don't have anything to assist or edit my coding.

Ummm...Help me?

-Alcatraz

 

Latest

T. C. McCarthy wins Compton Crook Award
05-24 - News
The King's Blood by Daniel Abraham
05-23 - Book Review
BLACKOUT by Mira Grant
05-22 - Book Review
Invincible by Jack Campbell
05-15 - Book Review
The Science of Avatar by Stephen Baxter
05-14 - Book Review
Scourge of the Betrayer by Jeff Salyards
05-08 - Book Review
Scourge of the Betrayer by Jeff Salyards
05-08 - Book Review
Scourge of the Betrayer by Jeff Salyards
05-08 - Book Review
Scourge of the Betrayer by Jeff Salyards
05-08 - Book Review
Odd John by Olaf Stapledon
05-06 - Book Review
Jack Campbell Interview Part 1
05-02 - Interview
Jack Campbell Interview Part 1
05-02 - Interview
Jack Campbell Interview Part 1
05-02 - Interview
The Age of Odin by James Lovegrove
05-01 - Book Review
Fire by Kristin Cashore
04-30 - Book Review
Interview with Jeff Salyards
04-24 - Interview
Fuzzy Nation by John Scalzi
04-24 - Book Review
Bloody Red Baron, The by Kim Newman
04-22 - Book Review
Caine's Law by Matthew Woodring Stover
04-17 - Book Review
New Gemmell Book Announced
04-16 - News
Strangeness and Charm by Mike Shevdon
04-16 - Book Review
Company of the Dead by David Kowalski
04-14 - Book Review
Girl Genius Omnibus, Volume One: Agatha Awakens by Phil and Kaja Foglio
04-10 - Book Review
Stark's War by Jack Campbell
04-10 - Book Review
David Gemmell Award 2012 Short List
04-08 - News
Interview with Kim Newman
04-06 - Interview
Titanic SF
04-05 - Article
Range of Ghosts by Elizabeth Bear
04-03 - Book Review
Forged in Fire by J.A. Pitts
04-02 - Book Review
Alchemist of Souls by Anne Lyle
04-01 - Book Review

New Forum Posts




About - Advertising - Contact us - RSS - For Authors & Publishers - Contribute / Submit - Privacy Policy - Community Login
Use of this site indicates your consent to the Terms of Use. The contents of this webpage are copyright © 1997-2011 sffworld.com. All Rights Reserved.