| | |
Diagonal rules in CSS?
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2005
Posts: 427
Reputation:
Solved Threads: 12
Well... I'd go with something similar to ...TommyBS...
You can put in an image and tell it to be 100% 100%... that would get the result you are after... sort of.
I suppose if oyu really want to have content on top of it, you could use relative positioning and z-index.
The problem is diagonal lines aren't really done with CSS.
So you have to find a way to make it "look" like it.
Css BG images won't likely work as you cannot tell them to take u pa certain dimension (it's tile or not, thats it as far as I know). (thus why I said an inline image).
I suppose it could be done.... 3 or 4 spans... a different image in each (triangle), and then nest them, positioning the image partling off... could work (but is that much extra markup worth the result?)
You can put in an image and tell it to be 100% 100%... that would get the result you are after... sort of.
I suppose if oyu really want to have content on top of it, you could use relative positioning and z-index.
The problem is diagonal lines aren't really done with CSS.
So you have to find a way to make it "look" like it.
Css BG images won't likely work as you cannot tell them to take u pa certain dimension (it's tile or not, thats it as far as I know). (thus why I said an inline image).
I suppose it could be done.... 3 or 4 spans... a different image in each (triangle), and then nest them, positioning the image partling off... could work (but is that much extra markup worth the result?)
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
http://www.choose-easyweb.com - Not my design, nor my idea :)
unless you know the fixed size of the table cell you will never get an exact fit which is why I still believe that a background image is the best idea. If you want to PM i don't mind sending you an example. Just to be even more controversal I'm going to ask why you are using tables at all and not just CSS!
Just to be even more controversal I'm going to ask why you are using tables at all and not just CSS!
It's a Federal Govt. contract and they have people who aren't developers trying to make design requests. I'm the only real developer in my group, so people come to me with ideas in odd contexts (such as an 'X' from CSS in a table). I wasn't sure about this one, so I thought I'd ask.
Thanks for all the advice guys! I'm going to advise them to go with the image or a sold background-color table cell instead. You've been a big help!
It's a Federal Govt. contract and they have people who aren't developers trying to make design requests. I'm the only real developer in my group, so people come to me with ideas in odd contexts (such as an 'X' from CSS in a table). I wasn't sure about this one, so I thought I'd ask.
Thanks for all the advice guys! I'm going to advise them to go with the image or a sold background-color table cell instead. You've been a big help!
•
•
Join Date: Feb 2005
Posts: 427
Reputation:
Solved Threads: 12
Sorry... going to disagree on that one.
If you let designers design, with no input from developers or users, then you are running the risk of getting a website that will fail.
You need input from all angles, through every step, from conception of ideas through to final coding.
Otherwise you end up with a site that is like 95% of those out there... inaccessible, poor usability and killing conversions as soon as people look a the site.
Plan, research, conceive, test, refine, develop.
Then repeat several times over.
If you let designers design, with no input from developers or users, then you are running the risk of getting a website that will fail.
You need input from all angles, through every step, from conception of ideas through to final coding.
Otherwise you end up with a site that is like 95% of those out there... inaccessible, poor usability and killing conversions as soon as people look a the site.
Plan, research, conceive, test, refine, develop.
Then repeat several times over.
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
http://www.choose-easyweb.com - Not my design, nor my idea :)
•
•
Join Date: Apr 2008
Posts: 7
Reputation:
Solved Threads: 0
•
•
•
•
Sorry... going to disagree on that one.
If you let designers design, with no input from developers or users, then you are running the risk of getting a website that will fail.
You need input from all angles, through every step, from conception of ideas through to final coding.
Otherwise you end up with a site that is like 95% of those out there... inaccessible, poor usability and killing conversions as soon as people look a the site.
Plan, research, conceive, test, refine, develop.
Then repeat several times over.
•
•
Join Date: Feb 2005
Posts: 427
Reputation:
Solved Threads: 12
ANd thats why so many Programmers have to use skills from other people!
Please, think logicially.
If you have a TEAM, then it needs to work as one.
Therefore everyone in volved has to have input and contribute.
Far to often I've seen professionals with amazing knowledge and prowess in their profession screw a project up by not listening to the input of others.
How many Designers are aware of Browser inconsistencies, the limitations of space and the various alterantions that a user can force onto a design?
Not many - thats why everyone needs the input.
Saying it's down to the 'coder' to make up for there lack of knowledge wastes time, as that person as t ospend a lot longer going over the variou problems the design has caused, and fix them.
Instead, with a little common sense and communicaiton, you can get a fantastic design (even complicated, convulated and highly attractive!), and still get it working in every damend browser, still have the text resize and have it work with assistive/alternative technologies without additional programming.
And Comprimise is the key.
Without comprimise, you get stubborn people ruining the end result.
Please, think logicially.
If you have a TEAM, then it needs to work as one.
Therefore everyone in volved has to have input and contribute.
Far to often I've seen professionals with amazing knowledge and prowess in their profession screw a project up by not listening to the input of others.
How many Designers are aware of Browser inconsistencies, the limitations of space and the various alterantions that a user can force onto a design?
Not many - thats why everyone needs the input.
Saying it's down to the 'coder' to make up for there lack of knowledge wastes time, as that person as t ospend a lot longer going over the variou problems the design has caused, and fix them.
Instead, with a little common sense and communicaiton, you can get a fantastic design (even complicated, convulated and highly attractive!), and still get it working in every damend browser, still have the text resize and have it work with assistive/alternative technologies without additional programming.
And Comprimise is the key.
Without comprimise, you get stubborn people ruining the end result.
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
http://www.choose-easyweb.com - Not my design, nor my idea :)
![]() |
Other Threads in the HTML and CSS Forum
- Previous Thread: struggling with css
- Next Thread: Help with Forms
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






