Advanced Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsWeb DesignAdvanced Web Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 5th, 2005, 09:57 AM
Spongy's Avatar
Spongy Spongy is offline
Alternately High
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Hilversum, Netherlands
Posts: 223 Spongy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 56 m 41 sec
Reputation Power: 11
Send a message via MSN to Spongy
Getting rid of <div align="right"> doesn't work

Hey,

I have a small problem... On my page spongy.nl the div holding my articles has a 'align="right"' set to it. Removing this causes the articles to move to the left. I added 'text-align: right' to my css, but still the problem stands. Does anyone knows a workaround for this?

Thanks in advance!

Spongy
__________________
Work to live, don't live to work

Reply With Quote
  #2  
Old April 5th, 2005, 11:16 AM
Madpawn Madpawn is offline
My beat is correct.
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 339 Madpawn User rank is Private First Class (20 - 50 Reputation Level)Madpawn User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 22 h 3 m 33 sec
Reputation Power: 10
I'm not sure what you're running right now, but your site looks fine. What are you trying to do?

Reply With Quote
  #3  
Old April 6th, 2005, 05:17 AM
Spongy's Avatar
Spongy Spongy is offline
Alternately High
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Hilversum, Netherlands
Posts: 223 Spongy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 56 m 41 sec
Reputation Power: 11
Send a message via MSN to Spongy
Well, I will try to explain my problem a bit further.

The div I'm talking about is '<div id="c-block" align="right">'. You see the 'align="right"' in there. For XHTML Transitional this is fine, but I want it strict. So the align has to go.
In my css, I added "text-align: right;" to #c-block and deleted it from the HTML. This didn't had the desired effect. The text was wrapping itself around the "nav"-div.

Basically, I just want to get rid of the align in my div.
I hope I made it more clear now.

Reply With Quote
  #4  
Old April 6th, 2005, 08:08 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,886 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 19 m 35 sec
Reputation Power: 14
looking at your page, which is it that you want aligned right?

leaning towards a css solution, have you tried using float instead?

Reply With Quote
  #5  
Old April 6th, 2005, 08:22 AM
Spongy's Avatar
Spongy Spongy is offline
Alternately High
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Hilversum, Netherlands
Posts: 223 Spongy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 56 m 41 sec
Reputation Power: 11
Send a message via MSN to Spongy
Brilliant! I just tried the float and it actually worked! My intention was to get the articles lined out on the right. That's where the align was needed for.
Only thing now is that the XHTML and CSS links disappeared, because they were set to a float to right. Changed it, it's not lifethreatening. I will find a solution for it.

Thanks again MadCowDzz!

Let's get it Strict!

Last edited by Spongy : April 6th, 2005 at 08:29 AM.

Reply With Quote
  #6  
Old February 17th, 2008, 03:53 AM
mysticav mysticav is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 1 mysticav User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 41 sec
Reputation Power: 0
align attribute in html tags is depricated in XHTML strict.

Use always css float

Reply With Quote
  #7  
Old September 7th, 2011, 05:58 AM
ngphuc2k ngphuc2k is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2011
Posts: 1 ngphuc2k User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 16 sec
Reputation Power: 0
That right:
<div style="float: right;">
...
</div>

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignAdvanced Web Development > Getting rid of <div align="right"> doesn't work


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap