Hi @ursNani ,
I looked at https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json
and the HTML-tags you can use are:
"enum": [
"div",
"button",
"span",
"a",
"img",
"svg",
"path"
so something like <nav>, which would be perfect, cannot be used...
However, I came up with this:
{
"elmType": "div",
"style": {
"width": "100%",
"text-align": "left",
"overflow": "hidden",
"border-top-width": "1px"
},
"children": [
{
"elmType": "div",
"style": {
"height": "15px",
"width": "15%",
"color": "#fff",
"font-size": "13px",
"border-top": "5px solid #eee",
"background-color": "orange",
"padding": "10px"
},
"children": [
{
"elmType": "a",
"txtContent": "Google",
"attributes": {
"target": "_blank",
"href": "https://www.google.com/"
}
}
]
},
{
"elmType": "div",
"style": {
"height": "15px",
"width": "15%",
"color": "#fff",
"font-size": "13px",
"border-top": "5px solid #eee",
"background-color": "orange",
"padding": "10px"
},
"children": [
{
"elmType": "a",
"txtContent": "Google",
"attributes": {
"target": "_blank",
"href": "https://www.google.com/"
}
}
]
}
]
}
You can change the two div's that have a width of 15% to the percentage that fits you.
This is the best I can do 🙂
If it's what you looked for: accept as solution to close this topic 😉