It does matter. You say your code doesn’t work, so clearly there is something wrong with it. The width attribute is deprecated and should be replaced by CSS. I’m also not sure you could use any value other than a pixel value, but a value of over 100% makes no sense in any case.
You want to create the same effect that this template has. I’ve shown you how they are doing it. You just add a similar rule to your own CSS, to create the same effect.
Can I ask how much experience you have with HTML and CSS, because you seem not to have a good grasp of the basics here?
The rule shown is a CSS rule, and as such, belongs in your CSS file. You can’t throw it into an HTML element. You will also need to ensure that your HTML structure is using the same class names, or amend them to match. If you are using the same structure shown in your other topic, the rule will probably work as it stands, but again, without seeing your HTML and the rest of your CSS, I can’t say for certain.
Please answer this question, because it will make it so much easier to help you if we know your level of expertise.
You are still trying to put the rule in the PHP. I’ve already explained that it belongs in your stylesheet. As you were advised yesterday, you need to get the HTML and CSS correctly in place before worrying about the PHP.
You are still using php for generating html. It’s obvious you don’t see how the things you try in the php scripts will end up in the generated html page.
To get a grip of it all and solve your issues, I suggest you do this :
Load the page you are working with in your browser, no matter if it works or not!
Right-click on the page and “Save as…”, choose “Webpage Complete” and save in a new folder on your computer.
In that new folder you will find that page’s php-generated html saved as an html file named after the page’s title, and in additional folders beside the html file, all the external parts like javascript, css and images that the page was using (but no server side scripts!).
Then post the whole html file and all the css file(s) here and we can help you make it work as you wish.
I think that is the best and fastest way, maybe the only workable way, to solve your issues.
Then, when the page work as you want, and only then!
You can start a new topic in the PHP forum and we will help you make the needed changes in the php scripts so it generates the html that works as you want.
You can upload it as a .zip folder, although there is a file size limit (and I can’t remember what at present). It’s not an ideal way to get help, as many members will, quite rightly, not wish to download a zip file from an unknown source, but if you’re unable to do it any other way, you’ll just need to take your chance.
N. B. You still haven’t answered my question about your level of experience with HTML/CSS.
HTML/CSS level medium i am good in php and mysql
i want chat privte with admin here i have lot a of websites i mean a lot they have some mistakes which can be fix but will take time.Websites from all kind category
You can send me a PM, if you wish, but please be aware that we do not provide private assistance. One of the benefits of forum posting is that the threads can be of assistance to others with a similar issue, so we always keep the discussion public.