Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1686 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Rounded Corners Driving Me Nuts

Thread title: Rounded Corners Driving Me Nuts
Closed Thread    
    Thread tools Search this thread Display Modes  
01-25-2007, 05:26 PM
#1
majorglory is offline majorglory
Status: Senior Member
Join date: Jun 2006
Location:
Expertise:
Software:
 
Posts: 848
iTrader: 10 / 100%
 

majorglory is on a distinguished road

  Old  Rounded Corners Driving Me Nuts

Hey guys,
I recently started coding again and, of course, there are billions of problems...
Well maybe just one.

A small preview of what the whole thing looks like is here.
What I have so far can be found here. What I'm trying to get is 'navright.gif' (nav right cap) and 'navbright.gif' (bottom nav right cap) to go to the far right of the their bars so it "caps" off the bar. I've tried 'align="right"'.

I've tried floating the left content left and setting the width as 99% then using another div to complete the 1% left over, but then it has an extra space at the bottom of it which is bad because I need to add another dark bar underneath it.

That pretty much all that I'm stuck on.

What will I get stuck on next? The login form. I don't know how to add styles to forms, so if you can post a link up, or just tell me here on how to do it, that'd be great.

Once again, I'm still looking for a 'mentor' on XHTML/CSS coding. Just someone who can answer my questions on how to do this or that.

Thanks all!

01-25-2007, 06:14 PM
#2
derek lapp is offline derek lapp
Status: design rockstar
Join date: Jan 2005
Location: guelph, ontario
Expertise:
Software:
 
Posts: 2,246
iTrader: 0 / 0%
 

derek lapp is on a distinguished road

  Old

for rounded corners you usually need 3 elements:

* wrapper div (apply tile as bg)
* inner wrapper (apply right cap as background top right)
* list for buttons (left button contains left cap)

Code:
.capWrap {
	float: left;
	width: yourwidth;
	height: yourHeight;
	background: transparent url(image/yourImage.gif) repeat-x;
}
.innerWrap {
	float: left;
	width: width-of-capWrap;
	height: height-of-capWrap;
	background: transparent url(images/your-right-cap-image.gif) no-repeat top right;
}
... etc
Code:
<div class="capWrapr">
	<div class="innerCap">
		<ul>
			*list items here
		</ul>
	</div>
</div>

01-25-2007, 09:35 PM
#3
majorglory is offline majorglory
Status: Senior Member
Join date: Jun 2006
Location:
Expertise:
Software:
 
Posts: 848
iTrader: 10 / 100%
 

majorglory is on a distinguished road

  Old

Well I understand the solution, but the bar isn't extending out 100% like I told it to do. =[ Thus not being able to see the top right justified right cap image.

Any idea?

01-25-2007, 10:39 PM
#4
Xi0s is offline Xi0s
Status: Sin Binner
Join date: Dec 2006
Location: Huddersfield, UK
Expertise:
Software:
 
Posts: 384
iTrader: 3 / 83%
 

Xi0s is on a distinguished road

Send a message via MSN to Xi0s

  Old

display:block; = width:100%; but is more browser compatible.

01-25-2007, 10:44 PM
#5
majorglory is offline majorglory
Status: Senior Member
Join date: Jun 2006
Location:
Expertise:
Software:
 
Posts: 848
iTrader: 10 / 100%
 

majorglory is on a distinguished road

  Old

didnt work =[

01-25-2007, 11:15 PM
#6
nathomusic is offline nathomusic
Status: Senior Member
Join date: Mar 2005
Location: England
Expertise:
Software:
 
Posts: 974
iTrader: 0 / 0%
 

nathomusic is on a distinguished road

Send a message via MSN to nathomusic

  Old

Originally Posted by majorglory
didnt work =[
Never does. The amount of times people have told me to do that to fix something, it's not worked once!

01-26-2007, 03:29 PM
#7
jabberwocky is offline jabberwocky
jabberwocky's Avatar
Status: Member
Join date: Oct 2005
Location: Calgary, Alberta, Canada
Expertise:
Software:
 
Posts: 278
iTrader: 0 / 0%
 

jabberwocky is on a distinguished road

  Old

for form style, same thing as anything else in style sheets, use ids or classes.

Code:
 
<form method="post" action="bush-isms.php" id="your_id" class="a_class">

<input type="text" name="internets" class="interwebs" />
<input type="submit" name="submit" value="submit" class="submit_button" />

</form>
it's like that...and that's the way it is. UUGH!

01-26-2007, 03:36 PM
#8
majorglory is offline majorglory
Status: Senior Member
Join date: Jun 2006
Location:
Expertise:
Software:
 
Posts: 848
iTrader: 10 / 100%
 

majorglory is on a distinguished road

  Old

:] Thanks!

01-27-2007, 03:32 PM
#9
echoSwe is offline echoSwe
Status: Member
Join date: Jul 2005
Location:
Expertise:
Software:
 
Posts: 185
iTrader: 0 / 0%
 

echoSwe is on a distinguished road

  Old

Originally Posted by nathomusic
Never does. The amount of times people have told me to do that to fix something, it's not worked once!

You use it IN the list ON the a-elements; then it works great, and you don't set a width on the li.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed