iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-17-2006, 01:59 PM
WebProWorld Member
 
Join Date: Jan 2006
Location: Ireland
Posts: 52
jasonweb RepRank 0
Default Site with curves

Hiya people, I'm designing a site that uses curves and I don't want to encase the design in a box, I was wondering if theres anyway either through CSS or HTML to make the edges of the curve always be 100% of the window without loosing quality?
Reply With Quote
  #2 (permalink)  
Old 10-19-2006, 05:20 AM
Moderator
WebProWorld Moderator
 
Join Date: Oct 2003
Location: Alberta, Canada
Posts: 878
weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6
Default Re: Site with curves

By using left and right floats, repeated in succession you can lay in graphic and /or text slices then have your text follow a curve. Check Big Bear's site for a sample.

If you mean rounded corners in a fluid layout, then you will need four separate graphics set in the background of four separate transparent layers, with corner orientation. "rounded corners"+css should return some useful articles on the subject.

In a fixed width layout, cap and bottom slices is the most common method. This would only require two layers, the main content holder with l&r border shade background, and header/footer containers in the layer above that containing cap and bottom slices, respectively.

Fixed height, fluid width works the same way.

However, a fully fluid layout requires more layers. Consider this example:
Code:
<div class="container">
<div class="left top">
	<div class="right bottom">
		<div class="right top">
			<div class="left bottom">

			</div>
		</div>
	</div>
</div>
</div>
Code:
div.container{
	width:50%;
	height:auto;
	color:#000;
	background:#fff;
)
div.right,div.left,div.top,div.bottom{
	width:100%;
	height:auto;
}
div.left.top{
	color:inherit;
	background:transparent url(left_top.jpg) no-repeat 0% 0%;
}
div.right.bottom{
	color:inherit;
	background:transparent url(right_bottom.jpg) no-repeat 100% 100%;
}
div.right.top{
	color:inherit;
	background:transparent url(right_top.jpg) no-repeat 100% 0%;
}
div.left.bottom{
	color:inherit;
	background:transparent url(left_bottom.jpg) no-repeat 0% 100%;
}
The left_top image may contain top and left border though it puts limits on the container size due the the size of the graphic. Same goes for right_bottom, which would be a 180 degree translation of left_top. right_top caps that corner, and its translation the other.

This is the basic idea in one version you'll likely run across. Lots of code structure, but it works, at least theoretically, here.
Reply With Quote
  #3 (permalink)  
Old 10-19-2006, 11:38 AM
WebProWorld Member
 
Join Date: Jan 2006
Location: Ireland
Posts: 52
jasonweb RepRank 0
Default Thanks

Whos Big Bear and whats the link to the site? I'll have a look into thoose techniques or I might just breat up my curves.
Reply With Quote
  #4 (permalink)  
Old 10-19-2006, 05:33 PM
Moderator
WebProWorld Moderator
 
Join Date: Oct 2003
Location: Alberta, Canada
Posts: 878
weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6weegillis RepRank 6
Default

My mistake: Big Baer. It took a little digging, but here is the link:
CSS Image Text Wrap Tutorial

While searching for the above, I ran across an article by Trenton Moss, "CSS and Round Corners: Build Boxes with Curves," but I can't post the link since it's a competing forum. Search for the title and you're sure to find it. It's strikingly similar to the method conjectured above.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

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

BB 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 -4. The time now is 10:18 PM.



Search Engine Optimization by vBSEO 3.3.0