The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Chart in HTML CSS, Astrological chart
sujatha
post Nov 18 2023, 09:27 AM
Post #1





Group: Members
Posts: 4
Joined: 18-November 23
Member No.: 29,091



I want to make chart using html css design, I have attached design I tried table, tr, td, it didn't work since it is combination of square and triangle. Is there any way to make this design happen? After this code design, i will take care of value passing to all squares and triangles. I need just that diagram code or support. Thanks for your support.



Attached thumbnail(s)
Attached Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
sujatha
post Nov 21 2023, 07:51 AM
Post #2





Group: Members
Posts: 4
Joined: 18-November 23
Member No.: 29,091



Thank you so much for all your support putting together. I am sending code for south indian chart as you are interested, i may change height width later with little updates...

#######HTML ##########
<h4>South Indian Chart</h4>
<table className="tableA">
<tr>
<td id='Pi'>{PiVal}</td><td id='Ar'>{ArVal}</td><td id='Ta'>{TaVal}</td><td id='Ge'>{GeVal}</td>
</tr>
<tr>
<td id='Aq'>{AqVal}</td><td className="col">Rasi Chart</td><td></td><td id='Ca'>{CnVal}</td>
</tr>
<tr>
<td id='Ca'>{CpVal}</td><td></td><td className="col1"></td><td id='Le'>{LeVal}</td>
</tr>
<tr>
<td id='Sa'>{SgVal}</td><td id='Sc'>{ScVal}</td><td id='Li'>{LiVal}</td><td id='Vi'>{ViVal}</td>
</tr>
</table>

########### CSS###########
.col {
border-right: hidden;
border-bottom: hidden;
}
.col1 {
border-left: hidden;
border-top: hidden;
}
.tableA {
border-collapse: collapse;
/* border: 2px solid #ff4d00;*/
background-color:rgb(244, 244, 216);

inline-size: 2px solid;
height: 400px;
width: 600px;
margin-left: 10%;
&td, th, tr{
border: 1px solid #402cef;
text-align: center;
table-layout: left;
font-size: 15px;
}}
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Nov 23 2023, 02:31 PM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,734
Joined: 9-August 06
Member No.: 6



QUOTE(sujatha @ Nov 21 2023, 01:51 PM) *

Thank you so much for all your support putting together. I am sending code for south indian chart as you are interested, i may change height width later with little updates...


I meant I wanted to actually see the content. But I googled and know now it's just text, and horizontal at that. At least the charts I found looked like that.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 24 2023, 07:48 AM
Post #4


.
********

Group: WDG Moderators
Posts: 9,672
Joined: 10-August 06
Member No.: 7



I'm still not sure of the structural/semantic meaning of the rhombuses/triangles in the Astrological Chart. But if the diagonal lines are mostly decorational, maybe you could just create them with a single background image (using CSS background-size to fit the container)? But you'd still need to place the text's HTML elements between the lines with CSS, which might be fragile of course.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
coothead
post Nov 24 2023, 08:58 AM
Post #5


Advanced Member
****

Group: Members
Posts: 207
Joined: 12-January 23
From: chertsey, a small town 25 miles south west of london, england
Member No.: 28,743



QUOTE(Christian J @ Nov 24 2023, 01:48 PM) *


I'm still not sure of the structural/semantic meaning of the rhombuses/triangles in the
Astrological Chart. But if the diagonal lines are mostly decorational, maybe you could
just create them with a single background image (using CSS background-size to fit the
container)? But you'd still need to place the text's HTML elements between the lines
with CSS, which might be fragile of course.



As Jason Knight pointed out here...

https://forums.htmlhelp.com/index.php?s=&am...st&p=146708

...that SVG was a reasonable way to go, and as I fully trust his judgement in these
matters, I went straight ahead and provided a coded example.

As far as I can see my example works perfectly well. IPB Image

What I cannot see, though, is why you keep on beefing about it. IPB Image


coothead
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
sujatha   Chart in HTML CSS   Nov 18 2023, 09:27 AM
Jason Knight   What makes that image a "chart"? What...   Nov 18 2023, 06:12 PM
Christian J   I suppose it's an Indian astrological chart, s...   Nov 18 2023, 08:20 PM
pandy   How did Meyer create that chistmas tree again? But...   Nov 19 2023, 07:53 AM
Christian J   Maybe an image map could be used?   Nov 19 2023, 08:57 AM
CharlesEF   Could CSS help with this? table { transform...   Nov 19 2023, 12:56 PM
pandy   I think it could! And assuming the content sho...   Nov 19 2023, 09:32 PM
sujatha   Thanks for all your feed backs, yes it is North In...   Nov 20 2023, 02:31 AM
pandy   Could you show us how a complete chart with data l...   Nov 20 2023, 05:01 PM
pandy   OK, using CharlesEF's idea, I came up with thi...   Nov 20 2023, 05:49 PM
sujatha   Thank you so much for all your support putting tog...   Nov 21 2023, 07:51 AM
pandy   Thank you so much for all your support putting to...   Nov 23 2023, 02:31 PM
Christian J   I'm still not sure of the structural/semantic ...   Nov 24 2023, 07:48 AM
coothead   [indent] I'm still not sure of the structural...   Nov 24 2023, 08:58 AM
Christian J   What I cannot see, though, is why you keep on bee...   Nov 24 2023, 12:18 PM
coothead   [indent] I'm just curious about different app...   Nov 24 2023, 02:03 PM
coothead   Hi there sujatha, check out the attachment below ...   Nov 21 2023, 11:05 AM
CharlesEF   Hi there sujatha, check out the attachment below...   Nov 21 2023, 08:08 PM
coothead   [indent] ...but what do I know? [indent] Well,...   Nov 22 2023, 01:35 PM
pandy   Looks good, but I thought the purpose was to have ...   Nov 23 2023, 02:27 PM
coothead   [indent] ...but I thought the purpose was to have...   Nov 23 2023, 03:21 PM
coothead   [indent] The text can't be copied [indent...   Nov 23 2023, 03:53 PM
pandy   I couldn't copy. Right, and a DIV is equivale...   Nov 23 2023, 09:14 PM
CharlesEF   ...but what do I know? Well, hopefully, you no...   Nov 23 2023, 02:58 PM
coothead   [indent] To be honest, in all my years of program...   Nov 23 2023, 03:32 PM
CharlesEF   Luckily for you, it seems that you have never need...   Nov 24 2023, 01:34 AM
coothead   [indent] No, I mainly code business software. [...   Nov 24 2023, 09:19 AM
CharlesEF   So why the interest in general with the "Gene...   Nov 24 2023, 02:16 PM
coothead   [indent] Like Christian J, I like to see how thin...   Nov 24 2023, 02:41 PM
sujatha   Thank you so much!   Nov 24 2023, 06:56 AM
coothead   [indent] Thank you so much! [indent] To wh...   Nov 24 2023, 09:05 AM
Christian J   I still don't understand how the Indian astrol...   Nov 25 2023, 05:38 AM
coothead   [indent] I still don't understand how the Ind...   Nov 25 2023, 11:35 AM
Christian J   [indent] I still don't understand how the In...   Nov 25 2023, 05:27 PM
coothead   [indent] That page generates an image of the char...   Nov 25 2023, 06:11 PM
Christian J   I am surprised that you actually want/need to do ...   Nov 26 2023, 07:25 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th May 2024 - 09:30 AM