Go to Post Temp wiring is always bad but it is made worse when dealing with a $1000 part. You wouldn't try to lash a makeshift power source to your PC. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-07-2004, 16:41
robot180's Avatar
robot180 robot180 is offline
Webmaster, spamrobotics.com
AKA: Jon
FRC #0180 (S.P.A.M.)
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Stuart, FL
Posts: 414
robot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to all
Send a message via AIM to robot180
DIV Tags in Mozilla

I have been having trouble with DIV tags in Mozilla. I use Mozilla Firefox 0.8 for Windows. I don't have any examples right now, but I test the same page in IE 6.0 and it looks fine.

I have two div tags side-by-side. They each say float: left. The left one is shorter than the right one but I don't want to limit the lengths of either one. The right one says float: left and clear: right. This way, if the contents of it are longer than the left column, it stays seperated into columns. However, what happens is if I put a p tag with a sentence in it, for example, and the text is just slightly longer than the space provided, I expected it to wrap the text, which it does in IE. However, in Mozilla, it moves the entire div tag under the left div tag instead of to the right of it. Then, if it still doesn't fit, it wraps it anyways.

I don't know if I explained this too well, but if anyone gets what I am saying, and if you know how to fix that, please let me know. Thanks.
__________________
-Jon
Computer Science Major
Georgia Tech
Former Team Leader
FRC Team 180
  #2   Spotlight this post!  
Unread 19-07-2004, 17:10
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: DIV Tags in Mozilla

Quote:
Originally Posted by robot180
I have been having trouble with DIV tags in Mozilla. I use Mozilla Firefox 0.8 for Windows. I don't have any examples right now, but I test the same page in IE 6.0 and it looks fine.

I have two div tags side-by-side. They each say float: left. The left one is shorter than the right one but I don't want to limit the lengths of either one. The right one says float: left and clear: right. This way, if the contents of it are longer than the left column, it stays seperated into columns. However, what happens is if I put a p tag with a sentence in it, for example, and the text is just slightly longer than the space provided, I expected it to wrap the text, which it does in IE. However, in Mozilla, it moves the entire div tag under the left div tag instead of to the right of it. Then, if it still doesn't fit, it wraps it anyways.

I don't know if I explained this too well, but if anyone gets what I am saying, and if you know how to fix that, please let me know. Thanks.
I have no trouble with DIV tags under Mozilla Firefox. (My website is http://texan.homeunix.net. It's almost entirely DIV tags.) How are you giving it those parameters? CSS? IE is fairly "I'll figure out what they meant" while Mozilla is more "That doesn't work; I'll ignore it." Maybe whatever you're doing it isn't completely correct HTML...

==EDIT==
Could you get the actual code you're using? That would help.
__________________

  #3   Spotlight this post!  
Unread 19-07-2004, 18:04
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: DIV Tags in Mozilla

I doubt this is the reason, but you might as well upgrade firefox to 0.91. Can't hurt (and it might help). Otherwise, post the code, like Texan said.
__________________
Learn, edit, inspire: The FIRSTwiki.
Team 1257


2005 NYC Regional - 2nd seed, Xerox Creativity Award, Autodesk Visualization Award
2005 Chesapeake Regional - Engineering Inspiration Award
2004 Chesapeake Regional - Rookie Inspiration award
2004 NJ Regional - Team Spirit Award
  #4   Spotlight this post!  
Unread 19-07-2004, 21:22
robot180's Avatar
robot180 robot180 is offline
Webmaster, spamrobotics.com
AKA: Jon
FRC #0180 (S.P.A.M.)
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Stuart, FL
Posts: 414
robot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to all
Send a message via AIM to robot180
Re: DIV Tags in Mozilla

I don't have code right now to post, but we just tried putting it in a table and that fixed it. I was trying not to use tables, which brings up another question. Someone told me that tables are no longer supported by web standards. Is this true? I rather use div tags, but tables work the same in most browsers, unlike div tags.
__________________
-Jon
Computer Science Major
Georgia Tech
Former Team Leader
FRC Team 180
  #5   Spotlight this post!  
Unread 19-07-2004, 21:42
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: DIV Tags in Mozilla

Just by looking at arbitrary webpages, you wouldn't know it, but tables are supposed to be in decline. I believe they are deprecated (other methods, like DIV, are preferred over them) in current standards and will be eliminated from standards eventually. If you want some real in depth info, check the official docs: http://www.w3.org/TR/xhtml1/#h-4.1
__________________
Learn, edit, inspire: The FIRSTwiki.
Team 1257


2005 NYC Regional - 2nd seed, Xerox Creativity Award, Autodesk Visualization Award
2005 Chesapeake Regional - Engineering Inspiration Award
2004 Chesapeake Regional - Rookie Inspiration award
2004 NJ Regional - Team Spirit Award
  #6   Spotlight this post!  
Unread 19-07-2004, 21:54
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,557
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: DIV Tags in Mozilla

Tables have never been designed for positioning items on a page, and thus are deprecated for that. Tables are designed for organizing information, and are not deprecated for that use.

Just like you don't type a letter in excel, you shouldn't position things with a table.
  #7   Spotlight this post!  
Unread 19-07-2004, 21:56
jonathan lall's Avatar
jonathan lall jonathan lall is offline
Registered User
FRC #2505 (The Electric Sheep; FRC #0188 alumnus)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Toronto, Canada
Posts: 547
jonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond repute
Send a message via MSN to jonathan lall
Re: DIV Tags in Mozilla

There's no such thing as "no longer supported by web standards," but the use of tables in a presentational context is deprecated by the community, and is of course misusing a medium for representing tabular data. Often tables are easier to use, but are of course only useful if you intend for your pages to only ever be readable by specific types of browsers on PCs. They destroy the idea of browsing the web from anything other than a PC, and incidentally are slow to render and even slower to load comparatively. That said, table-based layouts will still validate and render as you'd expect in mainstream browsers under typical doctypes. They'll just be perpetually a tad silly. If you're still interested, I'm fairly certain I could fix your problem without the use of tables if you post the source code.

As for div tags, max, they aren't much better. Overuse of divs and spans (which are theoretically for defining divisions not addressed by othe HTML elements) results in semantic nonsense and presentational HTML. The table will be in HTML for the forseeable future, but is simply meant for tabular data, and not as a structural device.
__________________

  #8   Spotlight this post!  
Unread 19-07-2004, 22:51
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: DIV Tags in Mozilla

I understand the whole content vs presentation thing, I guess I should have wrote about that in my post.

Jonathan, I'm not sure what you mean by "overuse" of divs and spans. What is overuse? Obviously don't make a page more complicated than you need to display how you want it to, but, if I'm not mistaken, divs and spans are what you are intended to use for positioning in a webpage. Use them (in your CSS, of course) till you get the appearance you like. Correct?
__________________
Learn, edit, inspire: The FIRSTwiki.
Team 1257


2005 NYC Regional - 2nd seed, Xerox Creativity Award, Autodesk Visualization Award
2005 Chesapeake Regional - Engineering Inspiration Award
2004 Chesapeake Regional - Rookie Inspiration award
2004 NJ Regional - Team Spirit Award
  #9   Spotlight this post!  
Unread 20-07-2004, 00:10
jonathan lall's Avatar
jonathan lall jonathan lall is offline
Registered User
FRC #2505 (The Electric Sheep; FRC #0188 alumnus)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Toronto, Canada
Posts: 547
jonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond repute
Send a message via MSN to jonathan lall
Re: DIV Tags in Mozilla

Quote:
Originally Posted by maxlobovsky
Jonathan, I'm not sure what you mean by "overuse" of divs and spans. What is overuse? Obviously don't make a page more complicated than you need to display how you want it to, but, if I'm not mistaken, divs and spans are what you are intended to use for positioning in a webpage. Use them (in your CSS, of course) till you get the appearance you like. Correct?
Well, what happens in some cases (and I'm a little bit guilty of this on my team's site) is web authors use divs just to change styles in specific areas, for example to change the font of some selection of text, or to position a paragraph just right when they could have styled another element. Semantically, this is incorrect, as simply enclosing some text in a div and id'ing the div doesn't always mean anything, and is often just an easier way of achieving a look. The way I justify doing that is if the task is impossible, or silly to do "properly", I'll just use a div or span. These are minor infractions.

The true overuse of spans and divs occurs when webdesigners try such presentational things as try to nest them within each other to get rounded corners as background-images for example. Sometimes, instead of defining a paragraph as display: block, they'll enclose it in a div which is by default block-level (which means, basically, it's shaped like a block and doesn't flow around other elements like text does). Sometimes they'll use CSS selectors to define rules around any span in an element
Code:
p span { font-size:larger; }
instead of simple <big> tags, etc.
__________________


Last edited by jonathan lall : 20-07-2004 at 02:26. Reason: big. big. i meant to say big. not large.
  #10   Spotlight this post!  
Unread 20-07-2004, 01:15
rowe rowe is offline
Eric Rowe
FRC #1097 (Site 3 Engineering)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Sacramento, CA
Posts: 133
rowe has a spectacular aura aboutrowe has a spectacular aura about
Send a message via AIM to rowe Send a message via MSN to rowe Send a message via Yahoo to rowe
Re: DIV Tags in Mozilla

Quote:
Originally Posted by jonathan lall
Code:
p span { font-size:larger; }
instead of simple <large> tags, etc.
wait, what ive been reading about html and css, the problem in most pages is the fact that they use tags like <large>, <big>, etc over and over agian instead of just using css. as i understand it, html should just be used for simple content and css should be used for the actual styling of the page.
__________________
Eric Rowe | Alumn
Team 1097 | Site 3 Engineering
2005 Silicon Valley Regional Finalists
2005 Silicon Valley Regional Sportsmanship Award
2005 Sacramento Regional Finalists
2005 Sacramento Regional Sportsmanship Award
2004 Silicon Valley Regional Sportsmanship Award
2004 Sacramento Regional Visualization Award
2004 Sacramento Regional Engineering Inspiration Award
  #11   Spotlight this post!  
Unread 20-07-2004, 01:44
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: DIV Tags in Mozilla

Errr, using <large>, <strong> etc, is fine. In fact, it would be incorrect to use CSS for such a use. You shouldn't create some sorta span to just to bold this word or to italicize this one. The articles you are reading are probably referring to pages where all <p> or all <h1> are additionally <strong> or <large> modified. If you want to bold your headers or your text, do that in CSS.

Another thing you might have read is about <strong> vs <b>. Any html tags that just specify the appearance of something like <b> (bold) or <i> (italicize) should be replaced with tags taht have more semantic meaning like <strong> and <em>. They will appear the same (at least in most mainstream browsers), but will also be usable on all sorts of displays. For example, if it is some sort of html-to-speech browser, you might drop <b> assuming they are just appearance tweaks, but you wouldn't drop <strong> (you might have the broswer read the word with emphasis....errr... that <em> but close enough).

(the <large> tag probably falls under html tags like <b> and <i> that are deprecated because I can't think of any english semantic for it other than "display larger")
__________________
Learn, edit, inspire: The FIRSTwiki.
Team 1257


2005 NYC Regional - 2nd seed, Xerox Creativity Award, Autodesk Visualization Award
2005 Chesapeake Regional - Engineering Inspiration Award
2004 Chesapeake Regional - Rookie Inspiration award
2004 NJ Regional - Team Spirit Award
  #12   Spotlight this post!  
Unread 20-07-2004, 02:14
jonathan lall's Avatar
jonathan lall jonathan lall is offline
Registered User
FRC #2505 (The Electric Sheep; FRC #0188 alumnus)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Toronto, Canada
Posts: 547
jonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond reputejonathan lall has a reputation beyond repute
Send a message via MSN to jonathan lall
Re: DIV Tags in Mozilla

Absolutely right, max. Though I should note, I started a trend when I wrote that last sentence. It's a <big> tag, not a <large> tag. AFAIK, <large> doesn't exist.
__________________

  #13   Spotlight this post!  
Unread 20-07-2004, 09:33
Adam Y.'s Avatar
Adam Y. Adam Y. is offline
Adam Y.
no team (?????)
 
Join Date: Mar 2002
Location: Long Island
Posts: 1,979
Adam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to behold
Send a message via AIM to Adam Y.
Re: DIV Tags in Mozilla

Quote:
Code:

p span { font-size:larger; }

instead of simple <big> tags, etc.
__
Actually I just checked and they really want webmasters to get rid of any of the formating tags and use css in place.
Quote:
The following HTML elements specify font information. Although they are not all deprecated, their use is discouraged in favor of style sheets.
This is what w3c says about all font style tags except for the Em and Strong tags. Those tags fall under a category for technical papers.
__________________
If either a public officer or any one else saw a person attempting to cross a bridge which had been ascertained to be unsafe, and there were no time to warn him of his danger, they might seize him and turn him back without any real infringement of his liberty; for liberty consists in doing what one desires, and he does not desire to fall into the river. -Mill

Last edited by Adam Y. : 20-07-2004 at 09:47.
  #14   Spotlight this post!  
Unread 23-07-2004, 22:11
robot180's Avatar
robot180 robot180 is offline
Webmaster, spamrobotics.com
AKA: Jon
FRC #0180 (S.P.A.M.)
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Stuart, FL
Posts: 414
robot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to allrobot180 is a name known to all
Send a message via AIM to robot180
Re: DIV Tags in Mozilla

I think that it is still up to web designers to decide whether they want to use all CSS or use some html tags. I also agree that in the situation of a technical paper or any kind of article-type writing, strong and em tags should be used. I think that if you are setting any other CSS properties for the text, then use CSS, otherwise, use the html tags, except for technical papers or whatever where you would always use strong and em so that programs like Jaws, which reads the screen out loud, realizes that it is more important. I realized this when making a website for an organization for the blind and visually handicapped. That is how I did it.
__________________
-Jon
Computer Science Major
Georgia Tech
Former Team Leader
FRC Team 180
  #15   Spotlight this post!  
Unread 23-07-2004, 22:26
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: DIV Tags in Mozilla

what ever happened to <b> and <i>?
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two new vBCode tags.. Brandon Martus Announcements 11 10-05-2004 11:43
pic: New hi-tech fad: scanning LED message name tags CD47-Bot Extra Discussion 11 29-03-2004 23:58
Arrggg Css postitioning isn't working in mozilla Adam Y. Website Design/Showcase 2 23-02-2003 16:38
ALT tags are your friends. Brandon Martus CD Forum Support 0 30-05-2001 17:36


All times are GMT -5. The time now is 01:51.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi