CSS UL Constrain Within Div

I have a horizontal nav that wouldn't wrap within the width dimensions of a div until I assigned the LI items float:left.

Two problems now, one is that I'd prefer the items centered, not aligned left, and more importantly, in Safari 2.04 on Mac 10.42 the nav contents are not placed where they should be, they're hugging the left edge of the div.

Is there a way to restrain the UL LI items within the wrapper div without floating left so I can retain there centering and keep the left padding?

View Replies


ADVERTISEMENT

Display Error Message On Constrain Violation

i've got a form to edit data or delete a record in sql server. if the delete fails on a constraint violation, nothing happens and of course the record is still there.

how can a check to see if this has occured and display a friendly message for the user so they know why the record will not delete. i've tried:

ret_string = Connection.execute(sqlstmt)

but that doesn't get anything.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved