Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-28-2012, 05:31 AM   PM User | #1
d'Anconia
Regular Coder

 
d'Anconia's Avatar
 
Join Date: Jan 2010
Location: Tempe, AZ
Posts: 142
Thanks: 15
Thanked 5 Times in 5 Posts
d'Anconia is an unknown quantity at this point
SVG Shape Warped?

Okay so I am using table headers and PHP in order to create up and down arrows that appear when re-sorting a table. For some reason the small triangles / arrows become warped when actually implemented in the HTML code. I didn't seem to have this issue back when I was using PNG.

Here is my code:

Code:
<div id="content" ><h2>View Submitted Entities</h2><p>There are currently <b>28</b> submitted entities.</p>
<table align="center" cellspacing="1" cellpadding="1" class="content_div" width="95%" style="box-shadow: 3px 3px 3px 3px rgba(0,0,0,0.2);">
		<thead class="thead_template"><th class="th_template" align="center">
                    <a style="color:white" href="view_entities.php?sort=name_asc"><b>Name </b></a></th>
                <th align="center" class="th_template"><a style="color:white" href="view_entities.php?sort=entity_location_desc"><b>Country </b><object data="images/sort_asc_white.svg" height="8px" type="image/svg+xml" ></object></a></th>
                <th align="center" class="th_template"><a style="color:white" href="view_entities.php?sort=created_by_username_asc"><b>Created By </b></a></th>
                <th align="center" class="th_template"><a style="color:white" href="view_entities.php?sort=date_of_creation_desc"><b>Date Created </b></a></th></thead>
When I sort / resort the images look like the following (zoomed in):


and


Yet when I open them in Inkscape as SVG files and add a grey background (so you can actually see them), I see the following:


and


What is going on here? I am using Google Chrome.
__________________
Powerful ideas for all lovers of personal and political freedom:
Freedomain Radio
Free Talk Live
d'Anconia is offline   Reply With Quote
Old 06-28-2012, 05:40 AM   PM User | #2
DrDOS
Senior Coder

 
Join Date: Sep 2010
Posts: 1,146
Thanks: 10
Thanked 148 Times in 148 Posts
DrDOS is infamous around these parts
Try the embed tag, or you may be able to use a standard img tag.

Added note; It occurs to me now that you have probably not put anything in your style sheet to set the size. You could maybe put in style for object, or embed, or whatever, or give them a class name.

Last edited by DrDOS; 06-28-2012 at 08:26 PM..
DrDOS is offline   Reply With Quote
Old 06-29-2012, 06:20 AM   PM User | #3
d'Anconia
Regular Coder

 
d'Anconia's Avatar
 
Join Date: Jan 2010
Location: Tempe, AZ
Posts: 142
Thanks: 15
Thanked 5 Times in 5 Posts
d'Anconia is an unknown quantity at this point
I will try in a bit, thank you. Been pretty busy the last few days. Will get back to you when I try it out.
__________________
Powerful ideas for all lovers of personal and political freedom:
Freedomain Radio
Free Talk Live
d'Anconia is offline   Reply With Quote
Reply

Bookmarks

Tags
chrome, inkscape, shape, svg

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:40 AM.


Advertisement
Log in to turn off these ads.