You are here: Re: Using CSS for best layout - experts help please « HTML « IT news, forums, messages
Re: Using CSS for best layout - experts help please

Posted by Els on 12/01/07 09:18

Ben C wrote:

> On 2007-11-30, Els <els.aNOSPAM@tiscali.nl> wrote:
>> news.freedom2surf.net wrote:
> [...]
>>> I'm creating the above page, but what I'm trying to acheive is that top
>>> right nav menu items (Contact Join us etc. ) are to the right most of the
>>> screen they can be.
>>
>> You floated their container right, but set the text-align to
>> "inherit". Apparently it's inheriting 'left'. Set it to 'right'
>> instead.
>
> And OP will also need to remove "float: left" and "display: block" from
> .navMiniTopRight a-- at the moment those things are all left floats, so
> they float to the left regardless of text-align.

Missed that one completely...

> He could set them to float: right, but then they'll end up in reversed
> order. Text-align: right and not floated is better, I can't see any
> reason why they need to be floats.

I often use floats for them so I can get paddings and margins on them.
Depends on the required look though. It's indeed not necessary at all
if it's just a line of links without rollovers or borders or anything.

--
Els http://locusmeus.com/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация