This is a discussion on "CSS round corners" within the Web Page Design section. This forum, and the thread "CSS round corners are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
CSS round corners
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
It maybe seems silly !
But I want to know why we should create round corners with CSS not with photoshop ? Why we try to divide the background to 8 parts to create a CSS DIVs background and not only put the background image itself behind a DIV ?
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
|
|
#2
|
||||
|
||||
|
Re: CSS round corners
You can make rounded corners without images using bullet points:
http://www.cssplay.co.uk/boxes/curves.html Never tried it myself, I always use photoshop Jack
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#3
|
|||
|
|||
|
Re: CSS round corners
I know, i mean those css that uses images to creating round corners
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
#4
|
||||
|
||||
|
Re: CSS round corners
Oh I see what you mean. It's because it allows the <div> with the rounded corners to expand in width and height but keep the corners. If you had a rounded box that was say, 300x300, and your content was 500px high, you would need to edit your box. If your content then changed again, you would again have to edit your box.
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#5
|
|||
|
|||
|
Re: CSS round corners
These types seems reasonable, but i see some types that they are fixed in height and width but they created with images and css, what about them ?
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
#6
|
||||
|
||||
|
Re: CSS round corners
Then the person who developed that has just made very hard work for themselves!
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#7
|
|||
|
|||
|
Re: CSS round corners
Quote:
I don't get it????? jack can you explain? Are we talking about corners for css boxes that do NOT use an image? Are you saying by using only css, no matter what size box you have for text, the corners will adjust in size making them the right ratio (is that the word I want?) |
|
#8
|
|||
|
|||
|
Re: CSS round corners
No, the discussion is about those css round corners which use images and are in fixed sizes
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
#9
|
||||
|
||||
|
Re: CSS round corners
Quote:
I belive the question asked was 'Why do people use all those extra divs and images when their text to go in their rounded box has a fixed width and height?' I then got confused and posted a link to rounded boxes without images and then realised that he wasn't looking for a solution. I think. LOL sorry! Jack
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#10
|
|||
|
|||
|
Re: CSS round corners
LOL... OK... I guess!
I'm so lost on this thread. Can rewind and start over? I usually use a three div box. 1)Is usually a top div with an image of the top left/center/right portion of a graphic 2)Then a solid color center div (or an image with a background) 3)Is usually a bottom div with an image that has the bottom left/center/right This limits you to how wide the box can expand because the top and bottom graphics cannot expand. They have set widths. So I suppose by having a 1)left top corner, 2)top center (repeat-x), 3)right top corner 4)middle (repeat: both) 5)left bottom corner, 6)bottom center (repeat-x), 7)right bottom corner that would account for 7 divs. Now your boxes can expand in width and height as you need. Where is div #8? And since I have not yet answered or tried to answer marsoul's question.. Fire & Knowledge has a tutorial on it making rounded corners without images.. and reasons why... I don't find any of his reasons very worthy. |
|
#11
|
|||
|
|||
|
Re: CSS round corners
|
|
#12
|
|||
|
|||
|
Re: CSS round corners
Quote:
Fixed width and height - go for photoshop Flexible width and height - go for css
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#13
|
|||
|
|||
|
Re: CSS round corners
Quote:
Fixed-width boxes make sense in a fixed-width page layout, and they require fewer images (and less markup). I believe scalable (elastic) layouts are best, and for these your boxes will need to be fully scalable too. But fixed-width layouts are easier, especially if you have lots of intricate decoration. |
|
#14
|
|||
|
|||
|
Re: CSS round corners
I know about fixed and elastic designs, but my question was why dont use programs like photoshop to create these boxes and dont create 8 pieces of images for css style ?
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
#15
|
|||
|
|||
|
Re: CSS round corners
Quote:
If you want your box completely fixed, then you could make one big image. Ugh. |
|
#16
|
|||
|
|||
|
Re: CSS round corners
Iv got scripts that do the rounded corners in CSS, complete with transparent edges so you can use it on gradient backgrounds.
Is this what your looking for instead of using images for the corners? |
|
#17
|
||||
|
||||
|
Re: CSS round corners
__________________
WelshStew If you think I've helped, click the "Thanks" tierney rides tboard - uk site | xtreme wales - extreme clothing WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
|
|
#18
|
|||
|
|||
|
Re: CSS round corners
Bookmarked that Stew!!! Nice link (cough)!
Shhhh.. don't tell anyone I bookmarked it! |