Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 31st, 2005, 10:32 AM   #11
bja888
Hobbyist Programmer
 
bja888's Avatar
 
Join Date: Oct 2005
Location: Central, FL
Posts: 213
Rep Power: 0 bja888 is an unknown quantity at this point
Send a message via AIM to bja888 Send a message via Yahoo to bja888
Yeppers, the W3 is tring to do away with it, now there will be no good way to center a page
I'l post a new template for you in less than 24 hours.
bja888 is offline   Reply With Quote
Old Oct 31st, 2005, 10:42 AM   #12
Obtruse_Man4
Programmer
 
Obtruse_Man4's Avatar
 
Join Date: Sep 2005
Location: PA, USA
Posts: 49
Rep Power: 0 Obtruse_Man4 is on a distinguished road
Thanks for the template. Doesn't matter how it's done, I just wasn't sure where to start in doing it.

The W3 is trying to get rid of the <center> tag? Why? I use it all the time. What else is there to center something?
__________________
"I have many layer-eight problems in my life, including myself."
Obtruse_Man4 is offline   Reply With Quote
Old Oct 31st, 2005, 11:17 AM   #13
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
The current approach to applying attributes is to apply them as attributes to a single, enclosing container. <p align="center" style="font-weight: bold;">CONTENT</p>, while not intrinsically superior to <p><center><strong>CONTENT</strong></center></p>, allows the styles to be applied en masse to a predefined class of container (as one example). When it comes to consistency, and the separation of presentation and content, it is actually a superior approach. People that never take any time out to think, because they're too busy reinventing the wheel, of course don't "get it".
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 31st, 2005, 11:34 AM   #14
bja888
Hobbyist Programmer
 
bja888's Avatar
 
Join Date: Oct 2005
Location: Central, FL
Posts: 213
Rep Power: 0 bja888 is an unknown quantity at this point
Send a message via AIM to bja888 Send a message via Yahoo to bja888
It makes since but it doesn't work like it should.
right now, <center> works and text-align:center; doesnt.
bja888 is offline   Reply With Quote
Old Oct 31st, 2005, 1:22 PM   #15
bja888
Hobbyist Programmer
 
bja888's Avatar
 
Join Date: Oct 2005
Location: Central, FL
Posts: 213
Rep Power: 0 bja888 is an unknown quantity at this point
Send a message via AIM to bja888 Send a message via Yahoo to bja888
[html]<html>
<head>
<title>The Far Side of the Galaxy - Downloads</title>
<link href="/skins/plain/style.css" rel="stylesheet" type="text/css" /></head>
<body>
<a name="top" id="top"></a>
<table height="100%" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td height="50" valign="top"><div id="menu">
<a href="/index.php" title="Home">Home</a>
<a href="http://forums.farsideofthegalaxy.com">Forums</a>
<a href="/pictures/">Pictures</a>
<a href="/downloads/">Downloads</a>
<a href="http://webmail.farsideofthegalaxy.com">Webmail</a>
</div></td></tr>
<tr><td align="center" valign="top">
Body


</td></tr>
<tr><td height="45"><div id="footer" align="center" valign="bottom">Copyright 2005, Evan Smith</div></td></tr>
</table>
</body>
</html>[/html]
Edit this line your menu layer to fix the space between the heard and body.[html]margin-bottom:50px;[/html]
Visual Sample http://www.bja888.com/temp/NoName.html
Warning this approach will not work if you ever decied to convert this template to xhtml.
bja888 is offline   Reply With Quote
Old Oct 31st, 2005, 2:50 PM   #16
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Here's an example of applied style versus in-content tags. Even with this tiny amount of content, you can see the difference in work required to produce it. The work required to EDIT and MAINTAIN it, in the face of changes, is stupendously mind-boggling. Scale it up to a large application. (Weird -- "text-align" woiks fer me.)

You know, BJ, I don't really mind that you are ineffably stupid. That's a personal choice, on your part. What I mind, and what I will do my utmost to prevent, is your misleading of members who come here for decent answers, simply because you have some bug up your ass about your personally-determined expertise as a web-design guru. I am asking you now to refrain from that. If you cannot voluntarily do that, I will appeal to the admins and mods of the forum to gag you. Pizientos has already had to close a couple of your threads for pandemic stupidity.

Example View the source.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 31st, 2005, 2:59 PM   #17
bja888
Hobbyist Programmer
 
bja888's Avatar
 
Join Date: Oct 2005
Location: Central, FL
Posts: 213
Rep Power: 0 bja888 is an unknown quantity at this point
Send a message via AIM to bja888 Send a message via Yahoo to bja888
I'm, not going to make the poor guy change his entire style sheet. The thing is over 300 lines long. I'm not going to make him hunt for the part that needs fixing. In this case I put the added attributes in the tags.
If you can solve this guys proublem a better way. Go ahead post it.

If your going to talk sh** back it up. Or else, there you go Obtruse_Man4 your proublem is solved.

And for the last time... text-align does not center divs in FF
bja888 is offline   Reply With Quote
Old Oct 31st, 2005, 3:09 PM   #18
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
bja888, please do me the favor of shutting the fuck up...

You are probably one of the least educated members here, and unless you're willing to accept that you're just going to make us mad when we are trying to help people. I hope this isn't too far from your comprehension, because xHTML surely is.

[html]
<html>
<head>
<style type="text/css">
#talign {
text-align: center;
}
</style>
<title>text-align example</title>
</head>
<body>
<div id="talign">bja888 you are just annoying...</div>
</body>
</html>
[/html]
Attached Images
File Type: jpg bja888_annoying.jpg (18.8 KB, 115 views)
__________________

tempest is offline   Reply With Quote
Old Oct 31st, 2005, 3:16 PM   #19
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Tempest for president.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 31st, 2005, 4:32 PM   #20
Mocker
Hobbyist Programmer
 
Mocker's Avatar
 
Join Date: Oct 2005
Location: Indiana
Posts: 216
Rep Power: 0 Mocker is an unknown quantity at this point
Send a message via AIM to Mocker
http://www.webmasterworld.com/forum83/501.htm

Maybe code works? Dunno other people have fought this problem before you, and possibly overcome it
__________________
#programmingforums relay - http://thegupstudio.com/cgi-bin/pforelay.cgi
freelance scripts - http://ryanguthrie.com/index.html
Mocker is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:23 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC