![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is it possible to set framrborder, scrolling properties using pure CSS? |
|
I come up with something like: iframe style="height:80px;width:180px;border:0;margin:0;p adding:0" frameborder="0" scrolling="no" src="http://www.google.com"/ |
|
Anything can be improved? |
#3
| |||
| |||
|
|
Yes. Stop using iframe. Stop polluting your pages with stupid search boxes that provide no added value to users and constitute a copyright infringements. You cannot do that in CSS, but doing so makes the CSS problem you describe vanish in a puff of logic and reason. -- Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/ |

#4
| |||
| |||
|
|
google.com is just an example, i didn't mean to be iframe google.com, is it useless for me |
|
my real question is how to replace those inline HTML stuffs using CSS |
#5
| |||
| |||
|
|
Quite often, people seem to think that replacing presentational HTML attributes (and elements) by CSS code is some sort of game - without realizing that there is no prize. It is generally worse than useless to modify existing pages to clean them up that way. If there is no change in page behavior, you neither lose nor win anything, except that you lose your time. But quite often people make mistakes and produce pages that work more unreliably than the original page. Use CSS for presentation as much as reasonably possible for _new sites_. Leave old pages alone unless there is some tangible benefit from modifying them. |
#6
| |||
| |||
|
|
The very attempt at replacing presentational can lead to a more useful redesign. |
|
You know, not everyone is a careful planner. |
|
(I just feel more optimistic today. Maybe it is the beautiful sunny winter weather here) |
#7
| |||
| |||
|
|
Scripsit dorayme: The very attempt at replacing presentational can lead to a more useful redesign. For random reasons and with some small or ridiculously small probability, anything can lead to anything, but does this really matter? In practice, an attempt at replacing presentational markup will partly result in replacing it, partly in messing things up, and partly in frustration. .... |
|
Especially if the transition is "successful", the laws of the human mind and practices of organizations imply that you will not even _consider_ a more useful redesign in the foreseeable future. |
![]() |
| Thread Tools | |
| Display Modes | |
| |