Questions tagged [text-styling]

139 questions
5
votes
1 answer

CSS border above and below but not full width

I am attempting to define a global style for block-quotes on a site I'm working on. The goal is to style the block-quotes so that they appear similar to the image below. I would like to avoid having to modify the DOM structure. Using pseudo-classes…
davidcondrey
  • 34,416
  • 17
  • 114
  • 136
4
votes
0 answers

Use text-align-last in react native

I want to justify my text and align right the last line. Here is what I tried: import React from 'react'; import { ScrollView, StyleSheet, Text } from 'react-native'; const Content1 = () => { return (
m sh
  • 41
  • 6
4
votes
2 answers

Can the Bootstrap 4 classes form-inline and float-sm-right not be combined?

HTML:
This is from an example using Bootstrap v4.alpha2. (I…
Ad Rienks
  • 400
  • 1
  • 6
  • 15
4
votes
2 answers

Wrapping a word using CSS after n number characters or pixels

I am using this link. http://lodev09.github.io/bootstrap-suggest/ On this page, when you start typing with @ characters in the first textbox, system shows a dropdown with certain values. I want to ensure, after every 20 characters system should wrap…
OpenStack
  • 5,048
  • 9
  • 34
  • 69
4
votes
3 answers

How to use Javascript to add multiple style properties to one element?

I've tried various renditions of this code to try and change a certain element for a coding exercise but non of them seems to be able to change multiple styling properties of an element on a button click. Would love some assistance.…
West Coast Charlie
  • 103
  • 1
  • 2
  • 9
4
votes
1 answer

Overline Text in Tkinter

I can apply an underline or overstrike style to text in Text widget. Is it possible to do an overline? import tkinter as tk root = tk.Tk() text = tk.Text(root) text.pack(padx=4,pady=4,fill=tk.BOTH,expand=tk.YES) text.tag_configure('underline',…
mcu
  • 3,302
  • 8
  • 38
  • 64
4
votes
2 answers

How to set part of Actionbar title bold

i would like to have an actionbar title like "titlepart1titleparttwo". But as I understand it correctly through a theme you can either set the whole title on bold or not but not partly. Is there any workaround?