Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  agyat : (24 May 2013 - 05:15 PM) O Dear, Where Are You? Without Your Words This Sb Is ..
@  agyat : (23 May 2013 - 01:23 AM) Wow! Mr. Sb Back Home.
@  OpaQue : (23 May 2013 - 12:44 AM) Ting
@  OpaQue : (24 April 2013 - 02:44 PM) I guess, Time to run Mycent script.
@  OpaQue : (24 April 2013 - 02:43 PM) wow.. not much spam. except habatt posting lot of links.. :P
@  yordan : (23 April 2013 - 01:04 PM) You're welcome, agyat. Nice to have been helpful. Second lesson: try full words, "you" instead of "EW".
@  agyat : (23 April 2013 - 05:03 AM) @YORDAN: tHANK EW FOR YOUR FIRST LESSON.   :D
@  yordan : (22 April 2013 - 09:43 PM) @agyat : "why don't you help me", or "please help me", or "please teach us"
@  yordan : (22 April 2013 - 09:42 PM) welcome back, velma
@  velma : (22 April 2013 - 07:51 AM) **yawns** Good to be back, wonder what is going on here :)
@  agyat : (22 April 2013 - 03:50 AM) Oh! so, why don't help me learn english..
@  yordan : (21 April 2013 - 08:38 PM) The goal mentioned by shiu : "learning english, learning computer"
@  agyat : (21 April 2013 - 06:31 PM) WHAT GOAL?
@  yordan : (20 April 2013 - 10:39 AM) yes, that's our goal. simultaneouly learning English and teaching/learning computer using.
@  shiyu : (20 April 2013 - 07:30 AM) learning english,learning computer
@  yordan : (19 April 2013 - 01:11 PM) Oh, I see, it's just a trick in order to force people looking at your texte. Somehow smart, maybe.
@  agyat : (19 April 2013 - 02:54 AM) And of course I know it is not SEO friendly.
@  agyat : (19 April 2013 - 02:52 AM) There may be two possible answers for that ....


1) Shout was posted using mobile keypad.

2) To force people read content carefully and/or with more concentration.
@  agyat : (19 April 2013 - 02:49 AM) There may be two possible answers for that ....
@  yordan : (18 April 2013 - 09:35 PM) however, why this mixing of capital letters in the middle of your text?

Replying to Almost 3d Blocks


Post Options

    • Can't make it out? Click here to generate a new image

  or Cancel


Topic Summary

TavoxPeru

Posted 08 July 2008 - 08:59 AM

The following pages shows some live examples:Best regards,

FirefoxRocks

Posted 02 June 2008 - 01:08 PM

Some years ago when i work with Fox Pro, I remember that for boxes needed on screen you create it by drawing manualy each one and setting things like its border colors and using an almost similar technique to have a 3D look.

Instead of yours i prefer this one:

li { 
	font-size: 0.75em;
	list-style-type:none;
	margin:0px 0px; 
	padding:0px 0px;
	border: 2px solid #000;
	border-left:1px solid rgb(192,192,192); border-top: 1px solid rgb(192,192,192);
	width:20em; 
	text-align:center
}
The list-style-type determines which list item marker will be used and setting it to none hides the list item market of each item. If you want to separate with some space between each list item simply increase the margin to 10px 0px.

Also, if you want to add an hover effect you can do it using a little javascript function that for example reverse the borders.

Best regards


That would be good if you actually want the bullet/number to be hidden, but the point is that this could have been applied to other elements such as paragraphs, divs, etc. Also, I used minimal code to avoid confusion in the example.

TavoxPeru

Posted 29 May 2008 - 11:59 AM

It's kind of simple, but I think it is cool anyways. Using CSS border properties, you can make an element look 3D.

Here's the code:

li {
	border: solid #000;
	border-left-width: 1px;
	border-bottom-width: 1px;
}
In this case, I have styled the list-item element to have a solid black border. The left and bottom side will only be 1px thick in order to make a difference between those and the top/right borders.

This line, border: solid #000 , has no width set. I figured out that most browsers default to a 3px border with an unspecified width (give or take a few pixels). By setting the left/bottom border to 1 pixel, it will give the right/top borders a thicker look, creating a 3D effect.

A change you can make to this is instead of thin left/bottom borders, you can have thin right/bottom borders. They will now look to be "pointed" left. I'm thinking that it will look nicer with right-to-left pages, but I'm not sure.

I have found that setting the top border to be the thin one doesn't look as good as this is intended to create a visual effect, and most people read downwards instead of upwards.

Experiment with CSS and you'll find really cool things you can do!

(This is compatible with all CSS supporting browsers.)

Some years ago when i work with Fox Pro, I remember that for boxes needed on screen you create it by drawing manualy each one and setting things like its border colors and using an almost similar technique to have a 3D look.

Instead of yours i prefer this one:

li { 
	font-size: 0.75em;
	list-style-type:none;
	margin:0px 0px; 
	padding:0px 0px;
	border: 2px solid #000;
	border-left:1px solid rgb(192,192,192); border-top: 1px solid rgb(192,192,192);
	width:20em; 
	text-align:center
}
The list-style-type determines which list item marker will be used and setting it to none hides the list item market of each item. If you want to separate with some space between each list item simply increase the margin to 10px 0px.

Also, if you want to add an hover effect you can do it using a little javascript function that for example reverse the borders.

Best regards

Jeigh

Posted 26 May 2008 - 06:16 PM

Yea it's amazing what css can do when you get creative. There are a lot of built in things but a ton of little tricks like you did that present some interesting and quite great results if you just use the available customizations in creative ways and combinations. I know I've personally used endless combinations of things to get weird results just because I was too lazy to look up the more standard ways to do things or to make my own way look a little different then the 'normal' way to do it. If you can find a custom way to do something using CSS, goto town haha.

FirefoxRocks

Posted 26 May 2008 - 02:50 AM

I've reviewed that list and basically it all comes down to appearance and control. I mean groove looks like something has been imprinted with a stamp, and inset and outset have their own unique way of popping in (or out). But by using my technique, you can almost emulate the 3D effects used in some versions of Microsoft PowerPoint.

Mordent

Posted 25 May 2008 - 11:23 PM

I haven't tried that bit of code out yet, but on first inspection I'm sure there are more "standard" ways of making things look 3D. For example, this page lists a whole stack of border styles (groove, ridge, inset and outset all containing "Defines a 3D <###> border" as the first part of their description).

From past experience, the borders they give are often all you really need. Still, how that compares with your suggested style I'm unsure of. I might try it out tomorrow morning and give a little more feedback then.

FirefoxRocks

Posted 25 May 2008 - 05:55 PM

It's kind of simple, but I think it is cool anyways. Using CSS border properties, you can make an element look 3D.

Here's the code:
li {
	border: solid #000;
	border-left-width: 1px;
	border-bottom-width: 1px;
}
In this case, I have styled the list-item element to have a solid black border. The left and bottom side will only be 1px thick in order to make a difference between those and the top/right borders.

This line, border: solid #000 , has no width set. I figured out that most browsers default to a 3px border with an unspecified width (give or take a few pixels). By setting the left/bottom border to 1 pixel, it will give the right/top borders a thicker look, creating a 3D effect.

A change you can make to this is instead of thin left/bottom borders, you can have thin right/bottom borders. They will now look to be "pointed" left. I'm thinking that it will look nicer with right-to-left pages, but I'm not sure.

I have found that setting the top border to be the thin one doesn't look as good as this is intended to create a visual effect, and most people read downwards instead of upwards.

Experiment with CSS and you'll find really cool things you can do!

(This is compatible with all CSS supporting browsers.)

Review the complete topic (launches new window)