|
-
Jan 26th, 2010, 11:22 AM
#1
Thread Starter
Fanatic Member
CSS Text Direction
Hello,
I used this code to change the text direction. This is working in IE but not in mozilla firefox. Also many properties are changing from IE to firefox like padding.
How to rectify this?
Code:
writing-mode: tb-rl;
-
Jan 26th, 2010, 12:06 PM
#2
Re: CSS Text Direction
writing-mode is a CSS3 property that's not well-supported at this time. Use direction instead:
This is a good list of the CSS properties you can more-or-less depend on being supported at this time.
-
Jan 26th, 2010, 12:28 PM
#3
Thread Starter
Fanatic Member
Re: CSS Text Direction
Ya, actually that prints text from right to left. right? I want my text to position like this in the image.
-
Jan 26th, 2010, 12:34 PM
#4
Re: CSS Text Direction
Ah, I see, though I don't think that's possible with CSS2. You'd need to use an image of the text instead.
-
Jan 26th, 2010, 12:35 PM
#5
Thread Starter
Fanatic Member
Re: CSS Text Direction
ya may be with css2, i found this code working in IE for my needs. but not in mozilla.
Code:
writing-mode: tb-rl;
-
Jan 26th, 2010, 12:37 PM
#6
Re: CSS Text Direction
which means it's unsupported by other browsers, which means you should probably not use it. read Samba's first reply ;)
-
Jan 26th, 2010, 12:37 PM
#7
Thread Starter
Fanatic Member
Re: CSS Text Direction
ya then i can use images, Also, do the page loads slow when we use images?? If yes, is there anyway to optimize the speed of loading page when using images???
-
Jan 26th, 2010, 12:39 PM
#8
Re: CSS Text Direction
of course page loads are increased when using images; this all depends on how big your images are, though. a small image (which is most likely what you have in mind for this) is not going to take a significant amount of bandwidth to load. a large photograph, however, can be much larger (say, 500 - 1000kb), and might take a second or two to load for most users. you would "optimize" them when making the image itself.
-
Jan 26th, 2010, 12:46 PM
#9
Thread Starter
Fanatic Member
Re: CSS Text Direction
Ya thankyou, i read somewhere, we can put all images together and call it using CSS positioning. So is this the good one?
-
Jan 26th, 2010, 01:00 PM
#10
Re: CSS Text Direction
.. I don't know what you mean, but either way you look at it, you have to load the image. this will increase the bandwidth required to load your website no matter what.
-
Jan 26th, 2010, 01:10 PM
#11
Thread Starter
Fanatic Member
Re: CSS Text Direction
ya, acutally i meant i am having nearly 50 images, can i combine all those images as a single image. So when the page loads it loads only a single image, rather than loading all those 50 images. Will this be helpful?
-
Jan 26th, 2010, 02:11 PM
#12
Re: CSS Text Direction
.. no? how would you possibly even display them all the way you'd want to?
while I know this is possible using the background-position CSS property, a method like this for upwards of 50 images seems like it would be out of your grasp right now. it depends on the content of the images, as well. are they layout images, or are they photographs?
the fact that you have almost 50 images kind of worries me and makes me think you might be doing something wrong. even some of the most complex layouts don't use 50 different images.
-
Jan 27th, 2010, 01:22 AM
#13
Thread Starter
Fanatic Member
Re: CSS Text Direction
Ya. I read in some links, using background-position property we can display the images with positions. And also those images for layout only. And i am having 5 to 6 pages. and each page has 10 images approx. But the styles for all the page is same. So i thought of CSS position method, after merging all images as a single image.
Is that the good one?
-
Jan 27th, 2010, 10:53 AM
#14
Re: CSS Text Direction
it really depends on the layout images :/ if you're not familiar with how to do it, then don't try to do it. it isn't going to save you any trouble when you're just starting out.
-
Jan 27th, 2010, 03:57 PM
#15
Thread Starter
Fanatic Member
-
Jan 28th, 2010, 12:20 PM
#16
Fanatic Member
Re: CSS Text Direction
i got a suggestion, you could use php to generate an image and rotate it using php code...
http://php.about.com/od/gdlibrary/a/rotate_image_gd.htm
-
Jan 28th, 2010, 03:22 PM
#17
Re: CSS Text Direction
making a PHP script to rotate an image is a little much, especially if this text is never going to change.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|