Go Back   CP Web Hosting - reseller hosting > Browser Scripting, HTML, XML and Multimedia > CSS
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-19-2007, 04:46 AM
Senior Member
 
Join Date: May 2007
Posts: 244
Lightbulb alignment issue

there is a row of links At the top of my site. I want them left aligned to the same place as the search bar in the header.

The problem is that it looks fine on my screen, but if I open up the favourites to narrow the screen, it goes too far right.

I imagine that different sizes of screens give different results too.

My CSS looks like this -

Code:
.nav {
	position: relative;
        left: 250px;
	top: 5px;
	height: 5px; /* Is this necessary? */
	/* font: 1.2em Verdana, Sans-Serif; */
	font-size: 1.2em;
        font-weight: bold;
	color: #404040; /* Is this necessary? */
	}

.nav a {
	color: #a2b3bf;
	}
Reply With Quote
  #2 (permalink)  
Old 06-19-2007, 04:48 AM
Senior Member
 
Join Date: May 2007
Posts: 290
Default

replace
left:250px;

with
margin-left:auto;
margin-right:auto;
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:55 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0