/    Sign up×
Community /Pin to ProfileBookmark

Positioning an <ul>

can somebody help me align this UL to the bottom right of this table. i put valign=”bottom” and align=”right” but it didn’t work, i tried to put padding and margins in the CSS to move it over and it just won’t work. any help would be greatly appreciated.

[code=html]
<table id=”products_page” border=”0″ cellpadding=”0″ cellspacing=”0″ width=”800″>
<tr id=”upper_nav” height=”198″>
<td valign=”bottom”>
<ul class=”navlist”>
<li>
<a href=”index.html”>Home</a></li>
<li><a href=”about_us.html”>About Us</a></li>
<li><a href=”contact_us.html”>Contact Us</a></li>
<li><a href=”contact_us.html”>Contact Us</a></li>
<li><a href=”contact_us.html”>Shipping Information</a></li>
<li><a href=”contact_us.html”>Return Policy</a></li>
<li style=”border-right:none;”><a href=”showcart.cfm”>View Cart</a></li>
</ul>
</td>
</tr>
</table>
[/code]

[code]
.navlist li {
font-size: 12px;
font-family: Helvetica, Times, serif;
display: inline;
list-style-type: none;
padding: 0px 10px;
border-right: 1px solid black;
float: left;
position: relative;
}

#upper_nav {
background-image: url(‘http://lonepineprairiepillows.com/Cart/cw3/Assets/cart_images/base_page.jpg’);
background-repeat: no-repeat;
}
[/code]

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@FangJul 21.2007 — &lt;style type="text/css"&gt;
html, body {
margin:0; padding:0;border:0;
}
body {
padding-top:180px;
width:800px;
background-image: url('http://lonepineprairiepillows.com/Cart/cw3/Assets/cart_images/base_page.jpg');
background-repeat: no-repeat;
}
.navlist {
margin:0;
padding:0;
padding-left:150px;
}
.navlist li {
font-size: 12px;
font-family: Helvetica, Times, serif;
display: inline;
list-style-type: none;
padding: 0px 10px;
border-right: 1px solid black;
}

#upper_nav { <br/>
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;ul class="navlist"&gt;
&lt;li&gt;
&lt;a href="index.html"&gt;Home&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="about_us.html"&gt;About Us&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="contact_us.html"&gt;Contact Us&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="contact_us.html"&gt;Contact Us&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="contact_us.html"&gt;Shipping Information&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="contact_us.html"&gt;Return Policy&lt;/a&gt;
&lt;/li&gt;
&lt;li style="border-right:none;"&gt;
&lt;a href="showcart.cfm"&gt;View Cart&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/body&gt;
Copy linkTweet thisAlerts:
@amberfrancesauthorJul 21.2007 — never thought of padding the body, thanks. my temporary solution was to surround the <ul> with a <div> and move it like that. do you think that is poor styling?
Copy linkTweet thisAlerts:
@ray326Jul 22.2007 — Most of the poor styling is the table. Did you ditch that?
Copy linkTweet thisAlerts:
@WebJoelJul 23.2007 — It's a waste of a perfectly good TABLE (or DIV, for that matter) to have to surround a(n) "<ul>" just in order to [I]move[/I] said "<ul>" around. I have seen it done, -more forgiveable for a DIV to be used than deprecated/useless TABLE. You can just use the "<ul>" if you style it right (correct width, height, borders, padding, margins, position, etc.). -But I am sort of a minimal mark-up advocate. :p Too often I see mark-up that wraps an banner or branding image in it's own DIV, then wraps an UL in it's own DIV, then wraps a <h>-tag in it's own DIV... --hardly much better than using TABLEs to wrap everything in something esp. when not really required... ?
Copy linkTweet thisAlerts:
@amberfrancesauthorJul 23.2007 — well your input is much appreciated, i am fairly new to design, and anything that lets me write less code with the same output is great information.
×

Success!

Help @amberfrances spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...