Welcome Guest, Not a member yet? Register   Sign In
img helper, img tag and position of an image
#1

[eluser]GabrieleMartino[/eluser]
Hi,

the img helper and the relative image tag do not support attribute like align="center". Also the div align="center" has been deprecated.

How should some one set an image on a side of the screen without use the px esplicit expression?

I put here this discussion to know if there is another solution that use some helper for other tags.

#2

[eluser]Ewout[/eluser]
You describe the problem, but could you please explain further what you are trying to accomplish?
#3

[eluser]noslen1[/eluser]
This is CSS dude, not CI, nor even HTML.
Set "text-align : center;" on the parent div.
#4

[eluser]GabrieleMartino[/eluser]
The answer is in the html and css, the question can be also set in codeigniter as the image helper do not provide the position of an image.

Just set a tag

Code:
<center> &lt;?php echo img(...) ?&gt; </center>

dude.
#5

[eluser]noslen1[/eluser]
The <center> tag is not supported in HTML5, and is deprecated in HTML 4.01. But yes it should work.
I maintain you should use some CSS.




Theme © iAndrew 2016 - Forum software by © MyBB