LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 08-06-2003, 01:07 PM   #1
smallfish
Member
 
Registered: Feb 2003
Location: Hong Kong, China
Distribution: redhat 8
Posts: 36

Rep: Reputation: 15
Unhappy html mystery


Hello, everybody,

I am new to linux and more so, completely new to html codes.

I have been learning to build webpage using bluefish as the html editor and have been reading a couple of books like ( Master Visually HTML 4 and XHTML 1) and others etc. and have just completed a simple index.html page.

when I viewed the index.html page with Mozilla at 800x600 resolution the page elements all were displayed at right where they should be. But when the same page was viewed at 1024x876 resolution,the elements, at least a few
of them were displayed at the wrong places.

would appreciate if anyone who can help to solve this simple problem?

Thank you in advance.

Have a nice day.

smallfish
linux fans
 
Old 08-06-2003, 01:18 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
That is what happens when using GUI editors. They quite often use absolute positioning. I would suggest writing your html pages by hand if you want proper liquid pages.
 
Old 08-06-2003, 09:08 PM   #3
smallfish
Member
 
Registered: Feb 2003
Location: Hong Kong, China
Distribution: redhat 8
Posts: 36

Original Poster
Rep: Reputation: 15
Smile

I will try to use gedit instead and redo the index.html and review the tags and
attribute values again to make sure I used the right stuff.

Thank you very much.

regards.

smallfish
linux fans
 
Old 08-07-2003, 10:35 AM   #4
sk8guitar
Member
 
Registered: Jul 2003
Location: DC
Distribution: mandrake 9.1
Posts: 415

Rep: Reputation: 30
don't use absolute positioning. thast whats messing you up. to position stuff use tables. and lots of them.
 
Old 08-08-2003, 09:11 AM   #5
smallfish
Member
 
Registered: Feb 2003
Location: Hong Kong, China
Distribution: redhat 8
Posts: 36

Original Poster
Rep: Reputation: 15
Smile

Thanks.

will try using t...a....b....l....e....s.

have just finished my dinner here hong kong time 10:10 pm

regards.

smallfish
linux fans
 
Old 08-09-2003, 05:19 PM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
to position stuff use tables. and lots of them.
I'm sorry but that is terrible advice. Tables are used to display tabular data. They are not for creating the layout of a website.

What you really want to use is relative positioning from CSS. For an example take a look at my website (link in my sig...), then take a look at the code, then look at the stylesheet (if you type http://badcomputer.no-ip.com/linuxbot.css in your browser it will prompt you to either download it or open it.)

Resize the browser window as much as you like, and notice how the website adjusts itself perfectly. Make it narrow, then make it wide.

Please don't use tables for page alignment. It is a kludge at best, and a very poor one at that...

Last edited by bulliver; 08-09-2003 at 05:23 PM.
 
Old 08-10-2003, 05:20 AM   #7
LadyMakoChan
LQ Newbie
 
Registered: Jul 2003
Distribution: RedHat 8.0., Winxp
Posts: 15

Rep: Reputation: 0
hmm, call me a n00b but i don't know whats wrong with tables.... O.o'''


Mata ne
MakoChan
 
Old 08-10-2003, 06:17 AM   #8
Trinity22
Member
 
Registered: Jul 2003
Location: oregon coast
Distribution: Fedora Core 3
Posts: 280

Rep: Reputation: 30
what is wrong with tables for websites? tables don't have to be just for displaying certain types of data......they work well in blog layouts and other simple things like image galleries.

trinity
 
Old 08-10-2003, 06:19 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally posted by sk8guitar
don't use absolute positioning. thast whats messing you up. to position stuff use tables. and lots of them.
and we were getting on so well too.... don't use tables... no. div div div div div
 
Old 08-10-2003, 07:04 AM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I agree with divs since the dramaticly reduce the page size and increase flexability but you need to be carefull with certain browsers. bulliver's page does not view well in Netscape 4 at all and the graphic shows up too often in IE.
 
Old 08-10-2003, 07:21 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Wow, that's wierd (just fired up IE). I obviously know next to nothing about web design/rendering, but notice how different things look in different browsers and just wonder 'why'...

Cool
 
Old 08-10-2003, 07:25 AM   #12
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Some browses don't stick to markup standards properly:
http://www.w3c.org/MarkUp/

This is something which I belive Mozilla is striving to do. There are also bugs in some browsers. There are versions of Netscape 4 that forget to make text bold when using a <B> tag.
 
Old 08-10-2003, 07:29 AM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
MasterC, if you do get into webdesign you'll find yourself fighting to get IE to do all the cool useful things...if you go to my acidrip site you'll see that the title stays onscreen with moz, ns etc... but in IE it moves, as IE doesn't pay attention to CSS, and you have to break so many rules just to get it to behave like it does there, and not completely screw the page up. there are countless pages devoted to cheats and hacks for IE. These are more in CSS2 and such, which are much newer and not needed for basic sites, but when you're trying to make more interactive sites like my acidbox thing is going (and avoiding using frames...) these css flaws really start getting in the way.
 
Old 08-10-2003, 07:38 AM   #14
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
That is wierd. I just fired it up in Moz and then in IE to compare.

All hate and propaganda aside, why aren't all browsers standard's compliant (equal)?

I've seen images (gif's usually) that seem to render correctly (speed related) in IE/konqueror, but seem to just slow down in Moz/Galeon.

Cool
 
Old 08-10-2003, 07:45 AM   #15
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Quote:
Originally posted by MasterC
All hate and propaganda aside, why aren't all browsers standard's compliant (equal)?
Who knows! I agree that it is mad though.

acid_ kewpie is right about tweaks and hacks - if you want to do make things fancy and looking similar in all browsers you will need to write some sort of script (client side or server side) to determine the browser version and either insert different stylesheets or add javascript.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Merge Of Html Files Into A Single Html (or Pdf) fiomba Linux - Software 10 05-11-2018 11:28 AM
html code and including html files Hockeyfan Programming 2 08-22-2005 05:11 PM
how to convert text(html) back to html. d1l2w3 Linux - Software 4 04-08-2005 08:16 PM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 05:06 AM
HTML Guru's or website Geeks (anyone who knows html) MasterC General 6 07-05-2002 01:59 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 06:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration