|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
||||
|
||||
|
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 |
|
#2
|
|||
|
|||
|
I'm not sure what you're running right now, but your site looks fine. What are you trying to do?
|
|
#3
|
||||
|
||||
|
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. |
|
#4
|
||||
|
||||
|
looking at your page, which is it that you want aligned right?
leaning towards a css solution, have you tried using float instead? |
|
#5
|
||||
|
||||
|
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. |
|
#6
|
|||
|
|||
|
align attribute in html tags is depricated in XHTML strict.
Use always css float |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Advanced Web Development > Getting rid of <div align="right"> doesn't work |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|