Hi there,
how canI define the attributes width and height in an img-tag looks like "<img src="..." width='200px' height=#300px'>"
Thanks for help
Oliver
Printable View
Hi there,
how canI define the attributes width and height in an img-tag looks like "<img src="..." width='200px' height=#300px'>"
Thanks for help
Oliver
Well you don't need to.
If you fill a box with an image you get source code:
<span class="xr_ar" style="left: 203px; top: 152px; width: 200px; height: 300px; background:url('index_htm_files/4.png') 0px 0px no-repeat;"></span>
If you drag an image onto your page you get source code:
<img class="xr_ap" src="index_htm_files/8.png" alt="" title="" style="left: 556px; top: 18px; width: 200px; height: 300px;"/>
What are you hoping to achieve?
Acorn
As Acorn says, you don't need to.
Are you trying to resize an imported image Oliver. A lot of web programs allow you to import an image & then using a dialogue window allow you to resize it. This isn't the way Xara works.
Import your image into the Xara page (1024 x 628 for example) then think whoops, that's to big. You dont get a dialogue window to resize it, what you do is physically resize it on the page. Using the selector tool drag the corner to scale the image to the desired size, ensuring Lock Aspect is on and the final image size is in exact pixels. Save the xar/web file. Export the website. Xara automatically exports the image to the size set on the page.
Hi Arcon, hi Egg,
thanks for your help. I know this and it's surely the right way to put the attributes in an inline-style. but my customer is using a seo-tool. this tool show him missing these attributes in the image-tag. can you recommend a good, modern seo-tool to analyse webpages.
Best SEO tool is Google themselves. Get your website registered with Webmaster tools and then go to HTML Improvements
https://support.google.com/webmasters/answer/80407
https://www.google.com/webmasters
Don't use any SEO analyzers, these "tools" often produce false reports. Skip the middle man and go straight to the search engine themselves.